cypress: RangeError: Maximum call stack size exceeded error thrown on DocumentFragments

Current behavior:

Currently i am start using cypress in a Salesforce based web, but when i try to use the Lightning elements that salesforce provides i receive the error for maximum call stack Just for the record for every element it works fine only in elements like this one:

The element is the following: label lightning-input_input=""

image

Desired behavior:

I want that elements such as lightning-input can be clickable or you can write on them

Steps to reproduce: (app code and test code)

.

Versions

3.3.1

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 29 (14 by maintainers)

Most upvoted comments

@jennifer-shehane @viral222 I am using 3.3.2 as well and did a debug session looks like it stucks in the method elIsHiddenByAncestors due to a wrap that it does to the element, that method can be found in cypress_runner.js line code 87101

due is a recursive function it throws the maximum call stack size exceeded, working on a workaround meanwhile cypress team can troubleshoot or reproduce the issue