-
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
chore: Fix flaky test #25726
chore: Fix flaky test #25726
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could remove the cy.get('body').click('topLeft')
and related comments from line 82 in this PR if you like, since your way actually works!
My eyes just completely skipped over that comment every time I read the test, hah. Removed in eccf3a0. |
42 flaky tests on run #43836 ↗︎
Details:
scaffold-component-testing.cy.ts • 1 flaky test • launchpad-e2e
commands/net_stubbing.cy.ts • 1 flaky test • 5x-driver-firefox
e2e/origin/patches.cy.ts • 1 flaky test • 5x-driver-firefoxe2e/origin/commands/assertions.cy.ts • 1 flaky test • 5x-driver-firefox
cypress/cypress.cy.js • 3 flaky tests • 5x-driver-firefox
The first 5 flaky specs are shown, see all 21 specs in Cypress Cloud. This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
* develop: (28 commits) chore: update changelog validation example (#25742) fix: Improve error handling around calls to `this.next` in middleware (#25702) chore: debug page tooltip distance and artifact border (#25727) fix: update newProject ref when switching between organizations in SelectCloudProjectModal (#25730) misc: Add max widths to debug page message states (#25725) chore: export types (#25714) chore: release @cypress/webpack-preprocessor-v5.16.3 chore: release @cypress/vue-v5.0.4 chore: release @cypress/grep-v3.1.4 chore: Fix flaky test (#25726) dependency(deps): update dependency debug to ^4.3.4 🌟 (#25699) feat: openInIDE for failed debug spec (#25691) test: fix flaky CT test by relying on query (#25706) test: fix flaky migration test (#25672) misc: style change for responsiveness (#25687) misc: set min widths for icons (#25684) chore(deps): update dependency markdown-it to v11.0.1 🌟 (#25698) chore: Fix flaky origin .wait() test (#25693) chore: unskip tests (#25676) chore: release @cypress/webpack-preprocessor-v5.16.2 ...
Additional details
This PR fixes a single flaky test.
Basically,
cypress-real-events
doesn't reset the browser's cursor position between tests or retries, resulting in, in some circumstances, tests that flake depending on what exactly is run before or after them and where it positioned the virtual mouse. Also, this test would never pass while retrying.This is why we don't use CDP for mouse events in Cypress core, despite the other advantages. Also, these tests don't work in Firefox at all.
Steps to test
How has the user experience changed?
PR Tasks
cypress-documentation
?type definitions
?