cypress icon indicating copy to clipboard operation
cypress copied to clipboard

Getting RangeError when trying to load application and get an element

Open rgangal opened this issue 10 months ago • 1 comments

Screenshot 2024-04-29 at 11 21 19 AM

Current behavior

I am getting the following error when running cypress and interacting with the application.

RangeError : Timed out retrying after 30000ms: Maximum call stack size exceeded

Desired behavior

No response

Test code to reproduce

describe('Sample - Tests', () => {
  let drive;
  before(() => {
    cy.copyCookies();
    cy.visit('****')
  });

  it('Should contain app title', () => {
    cy.get('[browser-title="*****"]').should('exist');
  });
});

Cypress Version

13.8.1

Node version

18.14.2

Operating System

macOS 14.4.1

Debug Logs

No response

Other

No response

rgangal avatar Apr 29 '24 18:04 rgangal

The collectRoots function is called when there is shadow DOM we need to walk. In this situation, it's getting into some infinite recursive loop it seems.

Can you provide an example of a URL or HTML file to run tests against that will cause this issue? That's the only way we'll be able to track this down.

jennifer-shehane avatar Apr 30 '24 20:04 jennifer-shehane