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
Cypress hangs when calling .click() on a web component #7679
Comments
@elylucas Thanks for providing a reproducible example! Ionic uses Shadow DOM, and we did make some changes in 4.8.0 concerning Shadow DOM, albeit - all effects should have been isolated to setting the But, my suspicions seem to be true in that some of the changes leaked out and is effecting your app even though you have not turned on the experimental feature. Test passes on commit before Shadow DOM: 7597bf9 Test hangs on Shadow DOM commit: a7ff8fd The test just hangs forever. |
@chrisbreiding Can you take a look into this? |
The code for this is done in cypress-io/cypress#7692, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior:
This appears to be a regression in 4.8. In 4.7 this functions as expected.
When targeting an Ionic web component like so:
The call to the click freezes the Cypress test runner. This appears to happen in Chrome 83, but seems to run fine in Firefox 75.
Desired behavior:
The click event should be fired on the targeted web component.
Test code to reproduce
Repo here: https://github.com/elylucas/ionic-react-cypress-4.8-hang
npm i
npm run start
(to start the Ionic React app)npx cypress open
mytest.spec.js
against chromeDowngrading to 4.7 seems to run fine, even when targeting Chrome 83.
Versions
MacOS Catalina
Cypress 4.8
Chrome 85
Firefox 75
The text was updated successfully, but these errors were encountered: