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

fix: Ensure orphaned browser instance is killed before connecting to a new one #25898

Merged
merged 6 commits into from
Feb 22, 2023

Conversation

chrisbreiding
Copy link
Contributor

Additional details

See the code comment in browsers/index.ts.

Steps to test

I was never able to reproduce the issue for this, so unfortunately it's not really possible to test it out manually.

How has the user experience changed?

PR Tasks

@cypress
Copy link

cypress bot commented Feb 21, 2023

34 flaky tests on run #44328 ↗︎

0 26868 1281 0 Flakiness 34

Details:

rename variables
Project: cypress Commit: b6ec574ce3
Status: Passed Duration: 18:50 💡
Started: Feb 22, 2023 7:42 PM Ended: Feb 22, 2023 8:01 PM
Flakiness  commands/net_stubbing.cy.ts • 1 flaky test • 5x-driver-firefox

View Output Video

Test
network stubbing > intercepting request > can delay and throttle a StaticResponse
Flakiness  e2e/e2e_cookies.cy.js • 1 flaky test • 5x-driver-firefox

View Output Video

Test
e2e cookies spec > __Host- prefix > can set __Host- cookie
Flakiness  e2e/origin/commands/assertions.cy.ts • 1 flaky test • 5x-driver-firefox

View Output Video

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

View Output Video

Test
... > correctly returns currentRetry
... > correctly returns currentRetry
... > correctly returns currentRetry
Flakiness  e2e/origin/commands/navigation.cy.ts • 1 flaky test • 5x-driver-electron

View Output Video

Test
cy.origin navigation > #consoleProps > .go()

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

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

@@ -156,6 +158,54 @@ describe('lib/browsers/index', () => {
expect(err).to.have.property('message').to.contain(`Browser: ${chalk.yellow('foo-bad-bang')} was not found on your system`)
})
})

// https://github.com/cypress-io/cypress/issues/24377
it('kills browser if one connects while launching another instance', async () => {
Copy link
Member

Choose a reason for hiding this comment

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

impressive that you were able to reproduce this in a test!

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.

Weird flicker in video for end to end test on updating to v10.10.0
3 participants