question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Retries hangs on failed assertions

See original GitHub issue

Current 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.

obraz

Test code to reproduce

Versions

5.0.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:21 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
cypress-bot[bot]commented, Sep 14, 2020

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.

2reactions
kucebcommented, Sep 4, 2020

I think I found the source of the issue, hoping to get a patch out in the next release.

Read more comments on GitHub >

github_iconTop 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 >

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