Cypress · Senior · Question 42 of 76
How should tests interact with apps that use heavy client-side routing?
- 1Reload the page after every navigation
- 2Always use
cy.visitinstead of clicking links - 3Assert on content of the new route, not on fixed waits
Show the answer
Correct answer: Assert on content of the new route, not on fixed waits
Explanation
Client-side routes change without page loads. Assert on URL and visible content to sync.