cy.wait() always gives a timeout error: No request ever occurred.

See original GitHub issue

Current behavior:

I am just following he tutorial at your site and there is a part when cy.wait('@alias') is shown.

On the video it worked fine, However I always getting an error

CypressError: Timed out retrying: cy.wait() timed out waiting 5000ms for the 1st request to the route: 'create'. No request ever occurred.

I have tried it both in my project and in your completed tutorial project The error is present in both cases.

Here is an image Request is going

When I don’t use cy.wait() it seems to work fine

Can you help me with this please?

Desired behavior:

cy.wait should for the request to resolve

Versions

“cypress”: “3.1.5”, Google Chrome Version 71.0.3578.98

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:34
  • Comments:148 (18 by maintainers)

github_iconTop GitHub Comments

87reactions
linturecommented, Mar 11, 2019

meeting this error, too… Is there any solution?

48reactions
jennifer-shehanecommented, May 7, 2019

Unfortunately we have to close this issue as there is not enough information to reproduce the problem.

Please comment in this issue with a reproducible example and we will reopen the issue. 🙏

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cypress intercept - No request ever occurred - Stack Overflow
I am trying to validate this with cypress but it throws ' Timed out retrying after 30000ms: cy.wait() timed out waiting 30000ms for...
Read more >
wait - Cypress Documentation
When passing an array of aliases to cy.wait() , Cypress will wait for all requests to complete within the given requestTimeout and responseTimeout...
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...
Read more >
Cypress and Flaky Tests: How to Handle Timeout Errors
Use cy.wait() command to manually require Cypress to wait a specified number of seconds before running a given test. Conclusion. All of ...
Read more >
cypress-io/cypress - Gitter
Hi, anyone has a workaround for this error: cy.wait() always gives a timeout error: No request ever occurred I always get this error...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found