-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cypress waiting for a new page to load and throwing timed out error #8619
Comments
@jennifer-shehane Any update |
There's currently no way to prevent the page load from happening within Cypress itself once the application under test has initiated a page load - so the tests won't continue until that new page fires its load event. This thread may be helpful for testing downloading a file - as this is not completely supported in Cypress yet. #949 |
File download is now supported in Cypress 6.3.0. You can now test file downloads in Cypress without the download prompt displaying. Any files downloaded while testing file downloads will be stored in the This means that if you had any code written to prevent the download prompt or to configure the download location (like in a Our file download recipe has been updated, so you can see some ways to test different types of files after they've been downloaded there. If you're encountering any bugs while testing file downloads, please open a new issue. |
Current behavior:
This is my test - Navigate to a page, make some selections on the page and click on a link. So, when i click on a link a file will be downloaded to my local machine. My test should end here. But cypress is waiting for a new page to load for long time and throwing a timed out error. Logging this issue since i could not find a viable solution for this problem in chat or over the web and this is holding my lot of work
Stack Trace:
Desired behavior:
When the file is downloaded, cypress should pass/fail based on the assertions i put. I don't want it to wait for anything else. Logging
### Test code to reproduce
Versions
5.2.0
Windows 10 64bit,Chrome
The text was updated successfully, but these errors were encountered: