Timed out retrying after 5000ms: cy.wait() timed out waiting 5000ms for the 1st request to the route:
See original GitHub issueCurrent behavior
I’m trying to reproduce the documentation example of intercept and then wait alias of intercept but it’s giving this error
CypressError Timed out retrying after 5000ms: cy.wait() timed out waiting 5000ms for the 1st request to the route: getSettings. No request ever occurred.Learn more
Test code to reproduce
describe('settings', () => {
it('should settings ', () => {
cy.intercept('http://example.com/settings').as('getSettings')
cy.wait('@getSettings')
})
})
Cypress Version
^9.3.1
Issue Analytics
- State:
- Created 2 years ago
- Reactions:11
- Comments:7 (1 by maintainers)
Top Results From Across the Web
cy.wait() timed out waiting 5000ms for the 1st request to the ...
CypressError: Timed out retrying: cy.wait() timed out waiting 5000ms for the 1st request to the route: 'route_login'. No request ever occurred.
Read more >How to wait for a request to finish before moving on with Cypress
ERROR: Timed out retrying after 5000ms: cy.wait() timed out waiting 5000ms for the 1st request to the route: file. No request ever occurred....
Read more >wait - Cypress Documentation
wait() will only run assertions you have chained once, and will not retry . Timeouts. cy.wait() can time out waiting for the request...
Read more >cypress-io/cypress - Gitter
CypressError: Timed out retrying: cy.wait() timed out waiting 5000ms for the 1st request to the route: 'searchModalRoute'. No request ever occurred.
Read more >Waiting in Cypress and how to avoid it - Filip Hric
Use "defaultCommandTimeout" to change default timeout ... Cypress will wait for the element to appear in DOM and will retry while it can....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
“Timed out retrying after 5000ms: cy.wait() timed out waiting 5000ms for the 4th request to the route: currentUserRequest. No request ever occurred.” I’m getting this error after I upgraded to Cypress 10 from Cypress 7 and it was working properly before the upgrade. Anyone else experienced this and knows how to fix it?
Closing because of the inactivity.