-
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: comment out skipped tests where tests always hangs + add logs #28632
chore: comment out skipped tests where tests always hangs + add logs #28632
Conversation
14 flaky tests on run #53465 ↗︎
Details:
commands/net_stubbing.cy.ts • 1 flaky test • 5x-driver-electron
commands/querying/querying.cy.js • 1 flaky test • 5x-driver-electron
e2e/origin/origin.cy.ts • 1 flaky test • 5x-driver-electron
cypress/cypress.cy.js • 3 flaky tests • 5x-driver-electron
project-setup.cy.ts • 2 flaky tests • launchpad-e2eThe first 5 flaky specs are shown, see all 7 specs in Cypress Cloud. Review all test suite changes for PR #28632 ↗︎ |
@@ -369,7 +369,9 @@ function visitLaunchpad () { | |||
return logInternal(`visitLaunchpad ${Cypress.env('e2e_launchpadPort')}`, () => { | |||
return cy.visit(`/__launchpad/index.html`, { log: false }).then((val) => { | |||
return cy.get('[data-e2e]', { timeout: 10000, log: false }).then(() => { | |||
return val | |||
return cy.get('.spinner', { timeout: 10000, log: false }).should('not.exist').then(() => { |
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.
do we think these timeout increases are performance related to the app? Wonder if its worth creating an issue but I also think this might be pretty difficult to track down the why.
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.
I have no idea what's causing this to hang and whether it's an App issue or just an issue in our own tests and how we're setting things up. I've never seen this behavior in the App outside of these tests or gotten a report of an issue of this page hanging.
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Additional details
This PR attempts to address some of the flake in our repo by doing the following:
visitLaunchpad
util to wait for thespinner
to no longer exist in the DOM. This is generally the accurate failure for these flaky frontend tests and their failures, but the errors get muddied on the cause because you just end up seeing errors like 'Welcome Cypress' wasn't visible or 'x wasn't visible', but if you review the Test Replay - the problem is that the page is just displaying the loading page. In the future, it will be more obvious that the test was stuck in a loading state.Steps to test
How has the user experience changed?
PR Tasks
cypress-documentation
?type definitions
?