You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to type into certain elements from Salesforce lightning components, an error is thrown like below:
CypressError: Timed out retrying: Maximum call stack size exceeded
Similar to previous issue that was resolved in 4.1.0 when doing visibility checks on elements - likely we are naively doing another check during type that is not considering the shape of elements generated in Salesforce Lightning Web Components #4373
Should not throw Max call stack error
Test code to reproduce
The text was updated successfully, but these errors were encountered:
I was able to track this Max call stack being thrown from the getFirstStickyPositionParent method. Similarly to the previous visibility check, it is iterating over the element without checking if $el exists first. So, goes into an infinite loop.
Likely there are other places where this check is insufficient still, so I'll take a look at some other instances and hopefully extract out this check into a broader method of 'checkExistence' and/or 'checkIfHtmlBodyOrDocument'.
Now comes the hard part of isolating a failing test case for the PR.