Retries hangs on failed assertions
See original GitHub issueCurrent behavior:
Sometimes Cypress hangs to eternity on failed assertions while Retries functionality is active. I described it once in this ticket: https://github.com/Bkucera/cypress-plugin-retries/issues/64#issuecomment-675498787
Now I’m experiencing similar issue in 5.0.0 version.
It’s probably a problem with .should('contain', xxx)
assertion.
Test code to reproduce
Versions
5.0.0
Issue Analytics
- State:
- Created 3 years ago
- Comments:21 (16 by maintainers)
Top Results From Across the Web
Retry-ability - Cypress Documentation
If the assertion still fails, Cypress continues retrying until the cy.find() timeout is reached. Retry-ability allows the test to complete each query as...
Read more >Cypress not retrying assertion - Stack Overflow
From reading about Cypress retry-ability, my understanding is that the should assertion should keep trying until timeout, which is set as " ...
Read more >Retry - NUnit Docs
If a test has an unexpected exception, an error result is returned and it is not retried. Only assertion failures can trigger a...
Read more >3 Practices to Reduce Flakiness in Cypress Tests - Atomic Spin
and the assertion fails, Cypress will only retry the .find() command, instead of starting from the beginning of the chain and retrying .get()...
Read more >Timeouts, retries and backoff with jitter - AWS
Instead, the arrival rate of requests frequently has large bursts. These bursts can be caused by client behavior, failure recovery, and even by...
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
The code for this is done in cypress-io/cypress#8527, but has yet to be released. We’ll update this issue and reference the changelog when it’s released.
I think I found the source of the issue, hoping to get a patch out in the next release.