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

testIsolation Config Throws on 2nd Test #23644

Closed
emilyrohrbough opened this issue Aug 31, 2022 · 3 comments · Fixed by #23646
Closed

testIsolation Config Throws on 2nd Test #23644

emilyrohrbough opened this issue Aug 31, 2022 · 3 comments · Fixed by #23646
Assignees
Labels
topic: session Issues when using session command type: bug

Comments

@emilyrohrbough
Copy link
Member

Current behavior

Screen Shot 2022-08-31 at 9 18 31 AM

  • quick debugging shows override level is "undefined" when it should be "suite"

Desired behavior

Config validation correctly ensures which level the configuration is being applied from.

Test code to reproduce

describe('page', {testIsolation: 'legacy' }, () => {
  it('works', () => {
    cy.visit('https://example.cypress.io')
  })

  it('works', () => {
    cy.url().should('eq', 'https://example.cypress.io')
  })
})

Cypress Version

10.5.0+

Node version

n/a

Operating System

n/a

Debug Logs

n/a

Other

No response

@emilyrohrbough emilyrohrbough added type: bug topic: session Issues when using session command labels Aug 31, 2022
@emilyrohrbough emilyrohrbough self-assigned this Aug 31, 2022
@cypress-bot cypress-bot bot added the stage: needs review The PR code is done & tested, needs review label Aug 31, 2022
@lewnelson
Copy link

We've also ran into this issue on 10.7.0 following the same setup, overwriting at the test suite level.

@cypress-bot cypress-bot bot added stage: pending release and removed stage: needs review The PR code is done & tested, needs review labels Sep 9, 2022
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Sep 9, 2022

The code for this is done in cypress-io/cypress#23646, 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 Sep 13, 2022

Released in 10.8.0.

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

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Sep 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic: session Issues when using session command type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants