Don't tell anyone, but our app is not yet single-page. I can wait on a given XHR request by giving the route an alias, but how do I wait until some navigation completes and the browser is safely on a new page?
相关问题
- cypress xhr request retry ontimeout
- How to use import with absolute paths in Cypress t
- Gather results from multiple cypress promisses
- Cypress - install it on empty project
- When developing e2e tests, Why is data-* attribute
相关文章
- Cypress ParseError: 'import' and 'expo
- How does module resolution in TypeScript work for
- How to return dimensions of document in Cypress fo
- Cypress expect element to contain one string or an
- Implement login command and access vuex store
- Detailed Reporting Cypress/Mochawesome
- Setting the browser language in Cypress
- Is there a programmatic way to change user agent i
You can add some assert inside:
You can change default timeout - by default it's 4000 ms (4 secs) - to ensure that user navigated the page. I've put a big number here - 60,000 ms - because I'm sure that 99% of users will leave if they do not have page loaded after 1 min.