Skip to content
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

fix: re-initialize DOM subscriptions from a full snapshot on cdp reconnect #29210

Merged
merged 8 commits into from
Mar 29, 2024

Conversation

ryanthemanuel
Copy link
Collaborator

Additional details

This issue occurs when CDP disconnects for some reason. On reconnect, we try to reestablish subscriptions, etc. We do call DOM.enable, but unfortunately the disconnect wipes out all of our DOM tracking that we've done thus far. The best way to fix this is on a reconnect, we should just capture a full snapshot from scratch.

PR Tasks

cli/CHANGELOG.md Outdated Show resolved Hide resolved
Copy link

cypress bot commented Mar 28, 2024

1 flaky test on run #54716 ↗︎

0 550 9 0 Flakiness 1

Details:

Merge branch 'develop' into ryanm/fix/hang-when-cdp-disconnects
Project: cypress Commit: 61f76a0bfc
Status: Passed Duration: 13:56 💡
Started: Mar 29, 2024 9:51 PM Ended: Mar 29, 2024 10:05 PM
Flakiness  cypress/e2e/top-nav.cy.ts • 1 flaky test • app-e2e

View Output

Test Artifacts
... > dismisses the banner for a specified time Test Replay Screenshots

Review all test suite changes for PR #29210 ↗︎

@ryanthemanuel ryanthemanuel merged commit 1ae7c9e into develop Mar 29, 2024
81 of 82 checks passed
@ryanthemanuel ryanthemanuel deleted the ryanm/fix/hang-when-cdp-disconnects branch March 29, 2024 22:04
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Apr 2, 2024

Released in 13.7.2.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v13.7.2, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Apr 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cypress can hang when recording to the cloud when CDP disconnects in the middle of a test
4 participants