Level 15
Looks like your server is responding with an error 500. So the test is hitting the URL, and it does load, but returns a 500 error. Could you take a look into the logs and see what causes the 500 response?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am taking the course https://laracasts.com/series/cypress-and-laravel-integration/episodes/1
I followed the tutorial step by step but the test does not go
it doesn't work (laravel 8.x) I arrived at 7:10 I launch the test and it gives me the following error:
TEST BODY
1
visit
/
CypressError
cy.visit() failed trying to load:
http://my-app.test/
The response we received from your web server was:
> 500: Server Error
This was considered a failure because the status code was not 2xx.
If you do not want status codes to cause failures pass the option: failOnStatusCode: false
cypress/integration/ex_spec.js:2:5
1 | it('works',() =>{
> 2 | cy.visit('/').contains('Enviroment:Acceptance');
| ^
3 | })
Please or to participate in this conversation.