-
Notifications
You must be signed in to change notification settings - Fork 0
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 #14
Comments
Hi, cypress-nhover doesn't do any special thing to handle shadowDOM, that is probably the cause of the error. If you can provide a MWE either into another repo or some third party public environment (like stackblitz.com) it may be a good start for me to investigate what is the root of the crash. |
Please find test repo in here lithtml |
Sorry forgot to add test files. Added them now |
Thank's for your help @rameshrc. I know it sounds like a ping-pong game, but the issue doesn't seem to come from the plugin itself. (see my comment here cypress-io/cypress#7986). I'll be trying to find a way to fix the root of this issue into cypress. I may also try to look for a quick and dirty fix who would make the call to |
After trying some tests, the issue isn't only due to Right now I don't have any clue about how to deal with that, it will require more digging and a bunch of time. To understand how to make it work. |
Related opened issue: https://bugs.chromium.org/p/chromium/issues/detail?id=1107096 |
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",
cy.get('dialog').get('.ok-button', { includeShadowDom: true }).nhover()
It creates an error
get .ok-button
scrollIntoView {log: false}
RangeError
Maximum call stack size exceeded
View stack trace
Print to console
at Sizzle (http://localhost:8002/__cypress/runner/cypress_runner.js:85876:27)
at Function.Sizzle.matches (http://localhost:8002/__cypress/runner/cypress_runner.js:86505:10)
at Function.jQuery.filter (http://localhost:8002/__cypress/runner/cypress_runner.js:87883:22)
at winnow (http://localhost:8002/__cypress/runner/cypress_runner.js:87866:22)
at jQuery.fn.init.is (http://localhost:8002/__cypress/runner/cypress_runner.js:87919:13)
at findScrollableParent (http://localhost:8002/__cypress/runner/cypress_runner.js:151206:16)
at findScrollableParent (http://localhost:8002/__cypress/runner/cypress_runner.js:151214:11)
at findScrollableParent (http://localhost:8002/__cypress/runner/cypress_runner.js:151214:11)
at findScrollableParent (http://localhost:8002/__cypress/runner/cypress_runner.js:151214:11)
at findScrollableParent (http://localhost:8002/__cypress/runner/cypress_runner.js:151214:11)
at findScrollableParent (http://localhost:8002/__cypress/runner/cypress_runner.js:151214:11)
at findScrollableParent (http://localhost:8002/__cypress/runner/cypress_runner.js:151214:11)
at findScrollableParent (http://localhost:8002/__cypress/runner/cypress_runner.js:151214:11)
at findScrollableParent (http://localhost:8002/__cypress/runner/cypress_runner.js:151214:11)
at findScrollableParent (http://localhost:8002/__cypress/runner/cypress_runner.js:151214:11)
Chrome 75
"dependencies": {
"lit-element": "^2.3.1"
},
"devDependencies": {
"@open-wc/testing": "^2.0.0",
"@open-wc/testing-karma": "^3.0.0",
"@types/node": "13.11.1",
"chrome-remote-interface": "0.28.2",
"concurrently": "^5.1.0",
"cypress": "^4.10.0",
"cypress-nhover": "1.0.0",
"deepmerge": "^3.2.0",
"es-dev-server": "^1.54.1",
"start-server-and-test": "^1.11.0",
"tslib": "^2.0.0",
"typescript": "^3.9.5"
}
The text was updated successfully, but these errors were encountered: