-
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
fix: fixed issue with CT + electron + run mode not exiting properly #25585
Conversation
47 flaky tests on run #43454 ↗︎
Details:
commands/net_stubbing.cy.ts • 1 flaky test • 5x-driver-firefox
e2e/origin/commands/waiting.cy.ts • 1 flaky test • 5x-driver-firefox
e2e/origin/commands/assertions.cy.ts • 1 flaky test • 5x-driver-firefox
cypress/cypress.cy.js • 3 flaky tests • 5x-driver-firefox
create-from-component.cy.ts • 1 flaky test • app-e2e
The first 5 flaky specs are shown, see all 23 specs in Cypress Cloud. This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
@@ -814,10 +814,6 @@ async function runSpecs (options: { config: Cfg, browser: Browser, sys: any, hea | |||
})), | |||
}) | |||
|
|||
if (testingType === 'component') { |
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.
E2E and CT should be closing the browser equivalently so this removal looks good to me!
* develop: (27 commits) refactor: remove unused cloud routes (#25584) chore: fix issue template formatting issue (#25587) fix: fixed issue with CT + electron + run mode not exiting properly (#25585) chore(deps): update dependency ua-parser-js to v0.7.33 [security] (#25561) fix: add alternative binary names for edge-beta (#25456) chore: add batch execution to CloudDataSource (#22457) chore: End a/b campaigns for aci smart banners (#25504) chore: release @cypress/schematic-v2.5.0 fix(cypress-schematic): do not disable e2e support file (#25400) chore: adding memory issue template (#25559) feat: Add Angular CT Schematic (#24374) chore: enforce changelog entries on PR reviews (#25459) chore: bump package.json to 12.4.0 [run ci] (#25556) feat: Add 'type' option to `.as` to store aliases by value (#25251) chore: release @cypress/webpack-dev-server-v3.2.3 feat: Display line break in cy.log (#25467) chore: update types (#25538) fix: Revert "fix: adding emergency garbage collection for chromium-based browsers" (#25546) fix: percy - wait to take snapshot until previous tooltips are gone (#25522) feat: support data-qa selector in selector playground (#25475) ...
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Additional details
Removed unneeded code that was causing component tests to hang in
electron
when running multiple specs inrun
mode.Prior to d1dc125, after running the first spec in electron, the browser instance is cleared and never set again even after a new spec is started. When
openProject.closeBrowser()
was called, the instance was null and the promise resolved.After d1dc125, after running the first spec in electron, the browser instance is cleared but then it is set to the new browser instance when the new spec is started. The instance is not cleared again after that. Thus, when
openProject.closeBrowser()
was called, the instance was not null and the promise never resolved causing the hang.Steps to test
run
mode inelectron
and verify the process is correctly exited.How has the user experience changed?
PR Tasks
cypress-documentation
?type definitions
?