Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
feature: Update `cy.visit` to allow for visiting non-2xx response pages when option set #982
Attempt at adding the behaviour as described in #574.
This is opt-in only behaviour and is configured by setting the option
Writing tests for a 404 page and validating the UI looks/behaves as expected.
I saw in the readme for the Driver package that the tests were no longer relevant? Anywhere else I should be adding test cases?
Let me know if any more changes or tests you require
Oh god I have no idea why the readme says that. It's completely inaccurate. I'll clean it up.
The driver is the single most tested package we have.
To test the driver couldn't be easier - you just write a regular cypress test!
In this case you need something to return you a 404 status code - so you'd add a route here: https://github.com/cypress-io/cypress/blob/develop/packages/driver/test/support/server.coffee
And then you'd add a test here in this block: https://github.com/cypress-io/cypress/blob/develop/packages/driver/test/cypress/integration/commands/navigation_spec.coffee#L414
To start the testing just