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

test: fix flaky tests #26505

Merged
merged 11 commits into from
Apr 17, 2023
Merged

test: fix flaky tests #26505

merged 11 commits into from
Apr 17, 2023

Conversation

jordanpowell88
Copy link
Collaborator

@jordanpowell88 jordanpowell88 commented Apr 14, 2023

Additional details

These changes make our e2e tests more resilient so that they aren't causing so much flake in our windows jobs.

Steps to test

yarn workspace @packages/launchpad cypress:open

How has the user experience changed?

PR Tasks

@jordanpowell88 jordanpowell88 changed the title Windows flake test: fix flaky tests Apr 14, 2023
@cypress
Copy link

cypress bot commented Apr 14, 2023

9 flaky tests on run #45573 ↗︎

0 457 13 0 Flakiness 9

Details:

test(launchpad): add timeouts for queries not settled
Project: cypress Commit: b15e5eb6ab
Status: Passed Duration: 18:59 💡
Started: Apr 17, 2023 1:19 PM Ended: Apr 17, 2023 1:38 PM
Flakiness  cypress\e2e\runner\ct-framework-errors.cy.ts • 2 flaky tests • app-e2e

View Output Video

Test Artifacts
Nuxt > error conditions Output Screenshots Video
Angular 13 > error conditions Output Screenshots Video
Flakiness  cypress\e2e\specs.cy.ts • 1 flaky test • app-e2e

View Output Video

Test Artifacts
... > shows No Specs page with specPattern from config Output Screenshots Video
Flakiness  cypress\e2e\create-from-component.cy.ts • 2 flaky tests • app-e2e

View Output Video

Test Artifacts
... > runs generated spec Output Screenshots Video
... > Shows create from component card for React projects Output Screenshots Video
Flakiness  cypress\e2e\runner\reporter.command_errors.cy.ts • 1 flaky test • app-e2e

View Output Video

Test Artifacts
errors ui > cy.readFile Output Screenshots Video
Flakiness  cypress\e2e\specs_list_latest_runs.cy.ts • 1 flaky test • app-e2e

View Output Video

Test Artifacts
App/Cloud Integration - Latest runs and Average duration > when no runs are recorded > shows placeholders for all visible specs Output Screenshots Video

The first 5 flaky specs are shown, see all 7 specs in Cypress Cloud.

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@@ -302,15 +302,15 @@ describe('setupNodeEvents', () => {

cy.findByRole('button', { name: 'Try again' }).click()
cy.get('[data-cy-testingType=e2e]').click()
cy.contains('h1', cy.i18n.launchpadErrors.generic.configErrorTitle)
cy.contains('h1', cy.i18n.launchpadErrors.generic.configErrorTitle, { timeout: 10000 })
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably would have just updated the entire suite:

describe('Config files error handling', { defaultCommandTimeout: 10000 }, () => {

But this works too 👍

@jordanpowell88 jordanpowell88 merged commit 067e4fa into develop Apr 17, 2023
3 of 4 checks passed
@jordanpowell88 jordanpowell88 deleted the windows-flake branch April 17, 2023 14:24
astone123 added a commit to kgroat/cypress that referenced this pull request Apr 19, 2023
* test(launchpad): fix flaky tests

Closes cypress-io#23153

Closes cypress-io#23154

---------

Co-authored-by: astone123 <adams@cypress.io>
tgriesser added a commit that referenced this pull request Apr 25, 2023
* feat/protocol: (45 commits)
  chore: adding support for url:changed (#26519)
  chore: adding viewport:changed to protocol (#26508)
  chore: Reduce dependencies and binary size, add circle ci detector (#26522)
  chore: 12.10.0 release (#26517)
  test: fix flaky tests (#26505)
  chore: Check project dependencies for CT compatibility (#26497)
  chore: update vm2 to 3.9.16 (#26489)
  chore: enable builds on feat/protocol branch (#26506)
  chore: [skip ci] update to labels looked at by stalebot (#26496)
  chore: connecting to electron browser (#26471)
  chore: [skip ci] turning on stale bot (#26488)
  chore: fix issue with logs without wallClockUpdatedAt (#26473)
  Update triage_add_to_project.yml
  chore: Update Chrome (stable) to 112.0.5615.49 and Chrome (beta) to 113.0.5672.24 (#26434)
  feat: display framework definition errors (#26183)
  fix: correctly resolve dependencies for CT onboarding when using Yarn Plug n Play (#26452)
  fix: Subscribe to framework detection changes in wizard (#26437)
  fix: make clicks on type('{enter}') composed (#26395)
  chore: update add-to-project workflow (#26439)
  chore: Pass telemetry resources from the node process to the browser (#26468)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants