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: fix problem with single tab run mode introduced by #27786 #28032

Merged
merged 3 commits into from
Oct 11, 2023

Conversation

ryanthemanuel
Copy link
Collaborator

Additional details

#27786 (which hasn't been released yet) inadvertently exposed an issue with single tab run mode where we weren't properly flagging an expected closure for electron. We fix this by ensuring to close the tab in an expected fashion on the last spec even when we are in single tab run mode.

Steps to test

Run tests in @cypress/react in electron

How has the user experience changed?

n/a

PR Tasks

@cypress
Copy link

cypress bot commented Oct 11, 2023

16 flaky tests on run #51580 ↗︎

0 11133 218 0 Flakiness 16

Details:

Update packages/server/lib/modes/run.ts
Project: cypress Commit: 104424cbf5
Status: Passed Duration: 15:15 💡
Started: Oct 11, 2023 5:14 PM Ended: Oct 11, 2023 5:29 PM
Flakiness  commands/net_stubbing.cy.ts • 2 flaky tests • 5x-driver-firefox

View Output Video

Test Artifacts
... > automatically parses application/json request bodies Output
network stubbing > waiting and aliasing > can spy on a 304 not modified image response Output
Flakiness  e2e/origin/config_env.cy.ts • 1 flaky test • 5x-driver-firefox

View Output Video

Test Artifacts
cy.origin- Cypress.config() > serializable > overwrites different values in secondary, even if the Cypress.config() value does not exist in the primary Output
Flakiness  e2e/origin/commands/assertions.cy.ts • 1 flaky test • 5x-driver-firefox

View Output Video

Test Artifacts
cy.origin assertions > #consoleProps > .should() and .and() Output
Flakiness  cypress/cypress.cy.js • 3 flaky tests • 5x-driver-firefox

View Output Video

Test Artifacts
... > correctly returns currentRetry Output
... > correctly returns currentRetry Output
... > correctly returns currentRetry Output
Flakiness  cy/timers.cy.js • 1 flaky test • 5x-driver-electron

View Output Video

Test Artifacts
driver/src/cy/timers > delays calls to requestAnimationFrame when paused Test Replay Output

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

Review all test suite changes for PR #28032 ↗︎

@ryanthemanuel ryanthemanuel merged commit 5efecf9 into develop Oct 11, 2023
80 of 82 checks passed
@ryanthemanuel ryanthemanuel deleted the ryanm/fix/issue-with-single-tab-mode branch October 11, 2023 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants