In Cypress, I have multiple requests that will match my cy.route()
declaration. I want to make sure more than one request is made on the route. How do I tell Cypress to wait for multiple XHR requests to the same url?
相关问题
- 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
From the Cypress Docs:
You should set up an alias (using .as()) to a single cy.route() that matches all of the XHRs. You can then cy.wait() on it multiple times. Cypress keeps track of how many matching XHR requests there are.