Cypress 10.0.2 is not bypassing resize observer loop errors
See original GitHub issueCurrent behavior
This error is showing up on tests that are set to ignore the error.
The following error originated from your test code, not from Cypress.
> ResizeObserver loop limit exceeded
When Cypress detects uncaught errors originating from your test code it will automatically fail the current test.
Because this error occurred during a after all hook we are skipping all of the remaining tests.
Although you have test retries enabled, we do not retry tests when before all or after all hooks fail
This was working correctly prior to the Cypress 10 upgrade.
Desired behavior
Optimally the error would just be ignored
Test code to reproduce
const resizeObserverLoopErrRe = /^[^(ResizeObserver loop limit exceeded)]/;
Cypress.on('uncaught:exception', (err) => {
/* returning false here prevents Cypress from failing the test */
if (resizeObserverLoopErrRe.test(err.message)) {
return false;
}
});
Cypress Version
10.0.2
Other
No response
Issue Analytics
- State:
- Created a year ago
- Reactions:5
- Comments:15 (7 by maintainers)
Top Results From Across the Web
809574 - Error "ResizeObserver loop limit exceeded" Firing ...
A ResizeObserver error seems to be caused by the video controls resizing ... This error does NOT get logged in console, but is...
Read more >ResizeObserver - loop limit exceeded - Stack Overflow
This error means that ResizeObserver was not able to deliver all observations within a single animation frame.
Read more >Uncaught exception: ResizeObserver loop limit exceeded
This is a legitimate problem, and the runtime error is in the console code. Regardless of what's in the CSV, the console should...
Read more >cypress-io/cypress - Gitter
new question - I am doing own async stuff in "before all" and would like to use cy.log() to report result/error in proper...
Read more >Contributing to Cypress - NotABug
Cypress - Fast, easy and reliable testing for anything that runs in a browser. ... operating system, you may encounter many commands that...
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
I just set
in this case, @nestor-aleks.
@ottopaulsen can you share your dimension, please? For me, it’s still failing with viewports
macbook-16 from https://docs.cypress.io/api/commands/viewport#Arguments