-
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
Cypress doesn't see shadow-root (user-agent) with pseudo elements #26383
Comments
@przedab thanks for the reproduction. I'm not sure why this is happening. Routing to our e2e team |
I am also hitting the same issue with lit and component testing. |
Any updates on this error, I am also facing the same issue. |
I am facing the same error, is there any update on this issue, or a workaround? |
Any update ? |
The issue still occurs! Please look into that :) |
Any updates on this? |
Any update on this one? |
This somehow "solved" it when headed. I'm not sure how it will go when headless... |
Hello is there any update on this issue ? |
So I've personally solved this issue that was happening for myself. I have some guesses as to what was happening. I was seeing this issue in CircleCI with the latest version of Stencil and Cypress 12.16.x First thing to note: the issue would go away when running Cypress 13.6, but then the StencilJS hydrate command wouldn't generate a functioning /hydrate/index.js. My best guess here is one of the dependancies of Cypress 13.6 conflicts with a version of the same dependency used by StencilJS. So I couldn't push Cypress higher than 12.16.x to get the hydrate to work correctly. What I found is when I used the Date API from inside of a Stencil component utilizing the The fix was the move my Date API calls to the class-style component and only pass the formatted date as a string to the functional-style component and now everything is passing Cypress correctly. My guess here is something in the bundling of functional-style components during the StencilJS build doesn't jive with what Cypress is expecting in the JS distribution and it ends up waiting for a browser API call that will never complete. |
Hello 4all! I solve the problem, using this article: https://dzone.com/articles/exploring-shadow-dom-with-examples-using-cypress I use the: Approach 2: Using the includeShadowDom Flag in Config Version Cypress: v12.14.0 |
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided. |
Same issue here. |
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided. |
This issue has been closed due to inactivity. |
Current behavior
Cypress doesn't see a shadow-root (user-agent) and I can't get access to pseudo elements inside a root.
AssertionError: Timed out retrying after 4000ms: Expected the subject to host a shadow root, but never found it.
Cypress:
Manually:
Desired behavior
Make access to pseudo-elements inside the shadow-root (user agent).
Test code to reproduce
Repository with simple test
Cypress Version
12.9.0
Node version
18.6.0
Operating System
Win 10
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: