-
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
App test runner remounts web components #22153
Comments
Hey @alexkrolick. Thank you for filing an issue. I believe I was able to reproduce some of the behavior you are seeing with this reproduction repository. Can you confirm this is the behavior you are seeing? |
Yep, the incrementing counter is a good repro side-effect. |
I am experiencing the same issues in e2e. Also experiencing this with the new Cypress 10 Component Testing. |
Hello, in our project we are using Cypress 12.8.1 and this issue still occurs. Have there been any updates on this? |
We are experiencing these issues in e2e testing in Cypress 12. Is there a workaround we can implement for the time being or is a solution planned for a future release we can expect? |
Hi @borislav-minchev & @L-Ignatova. We currently don't have this issue prioritized, but are always willing to accept contributions to fix the issue! |
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. |
Issue still exists |
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. |
still an issue |
Is there some webhook to trigger the unregister of the webcomponent? So we can use snapshots... |
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. |
Current behavior
When using the interactive test runner UI, if you hover over the chained cypress commands in the left panel, Cypress attempts to restore the DOM state at the given time.
With webcomponents/custom elements, restoring the DOM state causes a new instance of the component to be created each time, which retriggers side-effects such as initial network calls, leading to extremely high request volume. It also fails to restore the actual component state at the time if it uses shadow dom.
Possibly related: #5898
Desired behavior
Hovering previous states in the test runner should restore the state of custom elements' shadow DOM, instead of creating new top-level instances.
OR
There should be some way to use temporary image- or video-based snapshots instead of DOM captures in the replay UI.
Test code to reproduce
Cypress Version
10
Other
No response
The text was updated successfully, but these errors were encountered: