-
Notifications
You must be signed in to change notification settings - Fork 152
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
All(?) timeouts report as "cy.then() timed out after waiting '4000ms'" rather than printing actual expectation failure #89
Comments
After a bit of digging, it looks like maybe ab5263d introduced a bug. Previously there was this code: .window({log: false})
.then({timeout: waitOptions.timeout + 100}, thenHandler) but the Tentative testing with the timeout re-added seems to have fixed the issue of timeouts not being respected (see: jagregory@d7fe43e). I'm unsure whether this also fixes the incorrect failure messages (I assume that's what the |
I can confirm that with the above mentioned change, if a legitimate timeout occurs I now get the expected message. For example: |
🎉 This issue has been resolved in version 5.0.2 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
We did have tests to check the timeouts were adhered to, I imagine a scenario was being missed. @jagregory would you be able to add a test which shows the initial failure? It would be good to have a test in the suite to confirm this doesn't get broken again. |
cypress-testing-library
version: 5.0.1node
version: 12.6.0npm
(oryarn
) version: 1.17.3Since upgrading to 5.0.1, it seems any timeouts are all being reported as
Your callback function returned a promise which never resolved
.Any expectation that times out now just prints out the below, which obviously makes it pretty difficult to know which assertion it's actually failing on.
The text was updated successfully, but these errors were encountered: