cypress
cypress copied to clipboard
Getting RangeError when trying to load application and get an element
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
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.