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.

Cypress 10.0.2 is not bypassing resize observer loop errors

See original GitHub issue

Current 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:closed
  • Created a year ago
  • Reactions:5
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ottopaulsencommented, Oct 17, 2022

I just set

  "viewportHeight": 667,
  "viewportWidth": 375

in this case, @nestor-aleks.

0reactions
nestor-alekscommented, Oct 13, 2022

@ottopaulsen can you share your dimension, please? For me, it’s still failing with viewports

  viewportWidth: 1536,
  viewportHeight: 960,

macbook-16 from https://docs.cypress.io/api/commands/viewport#Arguments

Read more comments on GitHub >

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

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