-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Range Error :Maximum call stack size exceeded when calling scrollIntoView on shadow DOM el #7986
Range Error :Maximum call stack size exceeded when calling scrollIntoView on shadow DOM el #7986
Comments
Very likely the nhover plugin is not handling shadow DOM. I would suggest following through with the issue you've already opened on their project: avallete/cypress-nhover#14 If you have an example provided using solely Cypress without a plugin that causes an error when trying to trigger events on shadow dom, we'd be happy to look at it with a reproducible example provided. |
Hi there, With the help of @rameshrc I've been able to reproduce the error without The issue seems to come from the scrollIntoView command when used with shadowDom. I will try to investigate on this issue when I have some free time, but if anyone has any suggestion or known related issue I any piece of information would be appreciated. @jennifer-shehane you may want to reopen this issue. |
@avallete Nice! Thanks for providing the example. I can see that a Maximum call stack size exceeded error is thrown when calling
{
"experimentalShadowDomSupport": true
}
it('renders a message on button click', () => {
cy.visit('index.html')
cy.get('button', { includeShadowDom: true }).scrollIntoView()
})
<html>
<body>
<element-one></element-one>
<script type="module">
import { LitElement, html } from 'https://unpkg.com/lit-element/lit-element.js?module'
window.customElements.define('element-one', class extends LitElement {
render() {
return html`
<button>Click me</button>
`
}
})
</script>
</body>
</html> |
The code for this is done in cypress-io/cypress#8106, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
I have application with lit-html web component. When button is clicked on a test bed html, dialog (lit-html web component) appears with ok button. I am trying to hover over it. Since no solutions of hover work for me, i tried out "cypress-nhover": "1.0.0",
It creates an error
The text was updated successfully, but these errors were encountered: