-
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: use open instead of connectToNewSpec in electron #27128
Conversation
5 flaky tests on run #48267 ↗︎
Details:
cypress\e2e\create-from-component.cy.ts • 1 flaky test • app-e2e
cypress\e2e\specs.cy.ts • 1 flaky test • app-e2e
cypress\e2e\cypress-in-cypress-component.cy.ts • 1 flaky test • app-e2e
cypress\e2e\cypress-origin-communicator.cy.ts • 1 flaky test • app-e2e
cypress\e2e\scaffold-project.cy.ts • 1 flaky test • launchpad-e2e
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
if (options.shouldLaunchNewTab) { | ||
// if we should launch a new tab and we are not running in electron (which does not support connecting to a new spec) | ||
// then we can connect to the new spec | ||
if (options.shouldLaunchNewTab && browser.name !== 'electron') { |
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.
we might need to check and some tests with #27116 or this (whatever goes in first) to make sure the behavior is expected, but I think the behavior should play nicely together.
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Additional details
Electron doesn't support multiple tabs/windows so calling
connectToNewSpec
in electron doesn't make sense. This change will callopen
instead which will ensure all the shutdown and startup logic associated with launching a new electron window is properly handled.Steps to test
How has the user experience changed?
Potentially shutdown and startup issues are now properly handled.
PR Tasks
cypress-documentation
?type definitions
?