Cypress Server Routes Are Lost After Page Load If Not Using cy.visit() #177
Labels
type: enhancement
Requested enhancement of existing feature
type: unexpected behavior
User expected result, but got another
When I have XHR requests go out on initial page load and need to have Cypress watch for those requests, I have to use
cy.visit()
to get to the page I want to test. I cannot get directed to that page or else the routes I tell Cypress about are lost.Example:
We need a feature where even if a new page loads, the routes you define are not lost. This gives testing a more "natural" flow.
cy.visit()
is the equivalent of typing in a browser URL. We should be testing how users actually get from page to page, which is usually clicking on a button, or an image, etc...The text was updated successfully, but these errors were encountered: