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

Change TestIsolation legacy to "on" / false "off" tie specifically to browser context #24206

Closed
nagash77 opened this issue Oct 11, 2022 · 2 comments · Fixed by #24316
Closed
Assignees

Comments

@nagash77
Copy link
Contributor

nagash77 commented Oct 11, 2022

Change testIsolation values from "legacy"/"strict" to "on" / false "off" tie specifically to browser context and update cy.session() to inherent the testIsolation configuration to toggle when session clears the the page when the command executes.

Behavior After Changes

testIsolation beforeEach test cy.session
on clear page, clear cookies & storage in all domains clear page, clear cookies & storage in all domains
off do nothing to browser context clear cookies & storage in all domains

Current Behavior

testIsolation beforeEach test cy.session
strict clear page, clear cookies & storage in all domains clear page, clear cookies & storage in all domains
legacy clear cookies & storage in all domains clear page, clear cookies & storage in all domains
@emilyrohrbough emilyrohrbough changed the title Change TestIsolation legacy to true / false and tie specifically to browser context Change TestIsolation legacy to "on" / false "off" tie specifically to browser context Oct 19, 2022
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Oct 24, 2022

The code for this is done in cypress-io/cypress#24316, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Oct 25, 2022

Released in 10.11.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v10.11.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Oct 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants