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

chore: comment out skipped tests where tests always hangs + add logs #28632

Merged
merged 7 commits into from Jan 12, 2024

Conversation

jennifer-shehane
Copy link
Member

@jennifer-shehane jennifer-shehane commented Jan 3, 2024

Additional details

This PR attempts to address some of the flake in our repo by doing the following:

  1. Comments out the tests that were previously skipped where cypress tests continuously hanged previously. See link of hanging behavior.
  2. Adds additional logs to the following command where hanging was occuring in order to track down better why this test was hanging.
  3. Add a check within the visitLaunchpad util to wait for the spinner 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.
  4. Increased the amount of time to wait for the loading spinner to no longer be visible to 10 seconds.
  5. Increased another element finder timeout to 10 secs.

Steps to test

How has the user experience changed?

PR Tasks

Copy link

cypress bot commented Jan 3, 2024

14 flaky tests on run #53465 ↗︎

0 10356 1044 0 Flakiness 14

Details:

Merge branch 'develop' into comment-out-skipped-test-where-hangs
Project: cypress Commit: 0699d55478
Status: Passed Duration: 14:47 💡
Started: Jan 12, 2024 3:16 PM Ended: Jan 12, 2024 3:31 PM
Flakiness  commands/net_stubbing.cy.ts • 1 flaky test • 5x-driver-electron

View Output

Test Artifacts
... > can timeout when retrieving upstream response Test Replay
Flakiness  commands/querying/querying.cy.js • 1 flaky test • 5x-driver-electron

View Output

Test Artifacts
... > intercept aliases > returns null if no xhr is found Test Replay
Flakiness  e2e/origin/origin.cy.ts • 1 flaky test • 5x-driver-electron

View Output

Test Artifacts
cy.origin > withBeforeEach > passes runnable state to the secondary origin on retry Test Replay
Flakiness  cypress/cypress.cy.js • 3 flaky tests • 5x-driver-electron

View Output

Test Artifacts
... > correctly returns currentRetry Test Replay
... > correctly returns currentRetry Test Replay
... > correctly returns currentRetry Test Replay
Flakiness  project-setup.cy.ts • 2 flaky tests • launchpad-e2e

View Output

Test Artifacts
... > can skip setup CT testing for an E2E project Test Replay Screenshots
Launchpad: Setup Project > switch testing types > takes the user to first step of e2e setup when switching from app Test Replay Screenshots

The 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(() => {
Copy link
Contributor

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.

Copy link
Member Author

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.

@jennifer-shehane jennifer-shehane merged commit b19c1cd into develop Jan 12, 2024
79 of 81 checks passed
@jennifer-shehane jennifer-shehane deleted the comment-out-skipped-test-where-hangs branch January 12, 2024 15:39
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jan 17, 2024

Released in 13.6.3.

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

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Jan 17, 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.

None yet

3 participants