I just wanted to give Cypress a try; I need to add some integration tests to an existing Laravel 9 project (which uses Livewire, if that makes a difference).
I'm developing on a Windows 10 (21H2) system with XAMPP 8.0.5.
I installed Cypress 10.3.0 and laracasts/cypress 3.0.0 as described (copy & paste). When I try to run the example spec (or any other basic spec), an error occurs:
CypressError: cy.request() timed out waiting 30000ms for a response from your server.
The request we sent was:
Method: POST
URL: https://www.efa2021.test/__cypress__/artisan
No response was received within the timeout.
Because this error occurred during a after all hook we are skipping all of the remaining tests.
Although you have test retries enabled, we do not retry tests when before all or after all hooks fail
at https://www.efa2021.test/__cypress/runner/cypress_runner.js:158491:78
From previous event:
at Context.request (https://www.efa2021.test/__cypress/runner/cypress_runner.js:158490:15)
From Your Spec Code:
at Context.eval (https://www.efa2021.test/__cypress/tests?p=tests\cypress\support\index.js:455:15)
The artisan route seems to have a problem; when I remove
cy.artisan('config:clear', {}, { log: false });
from the tests/cypress/support/index.js (both lines), the test passes.
cy.exec('php artisan config:clear');
works, so calling artisan is no general problem.
I'm not sure if it is connected, but on the console where I started Cypress, the line
[37252:0703/093736.462:ERROR:gpu_init.cc(446)] Passthrough is not supported, GL is disabled, ANGLE is
can be found between the access log lines, and yes, the text is cropped at the end.
I tried testing with Chrome and Electron.
Could this be a Windows- or XAMPP-specific issue? I couldn't find anything about this problem.
Any help would be greatly appreciated!
I just wanted to give Cypress a try; I need to add some integration tests to an existing Laravel 9 project (which uses Livewire, if that makes a difference).
I'm developing on a Windows 10 (21H2) system with XAMPP 8.0.5.
I installed Cypress 10.3.0 and laracasts/cypress 3.0.0 as described (copy & paste). When I try to run the example spec (or any other basic spec), an error occurs:
The artisan route seems to have a problem; when I remove
cy.artisan('config:clear', {}, { log: false });from the tests/cypress/support/index.js (both lines), the test passes.
cy.exec('php artisan config:clear');works, so calling artisan is no general problem.
I'm not sure if it is connected, but on the console where I started Cypress, the line
[37252:0703/093736.462:ERROR:gpu_init.cc(446)] Passthrough is not supported, GL is disabled, ANGLE iscan be found between the access log lines, and yes, the text is cropped at the end.
I tried testing with Chrome and Electron.
Could this be a Windows- or XAMPP-specific issue? I couldn't find anything about this problem.
Any help would be greatly appreciated!