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:false config not working in docker image with Cypress version above v13.4.0 #30918

Closed
shaju007 opened this issue Jan 21, 2025 · 3 comments

Comments

@shaju007
Copy link

shaju007 commented Jan 21, 2025

Current behavior

When cypress test run in docker with cypress docker image 13.5.0, testIsolation:false config is not working. But with cypress docker image 13.4.0, works fine.

Image

Desired behavior

testIsolation:false in cypress docker image above version 13.4.0 should work.

Image

On test retry, default blank page is present instead of home page.

Image

Test code to reproduce

describe('Visit once', function () {
    before(() => {
      cy.visit('/')
    })
   
    it('Assert page title not exist', function () {
      cy.title().should('not.exist')
    })
  
  })

Cypress Version

13.5.0

Node version

20.9.0

Operating System

macOS 15.2

Debug Logs

Other

No response

@shaju007 shaju007 changed the title Testisolation:false config not working in Cypress v13.5.0 Testisolation:false config not working in docker image with Cypress version above v13.4.0 Jan 21, 2025
@shaju007
Copy link
Author

shaju007 commented Jan 21, 2025

Is #28213 the cause of my issue? @mschile
What should happen when a last test retry? It should follow testIsolation: false config, right?
Run the tests on docker container with docker image 13.5.0, issue can be seen reproduced. On retry, second test has blank page issue. But first test doesn't have 'blank page' issue on retry.

describe('Visit once', function () {
    before(() => {
      cy.visit('/')
    })
    it('Assert page title not exist', function () {
      cy.title().should('not.exist')
    })
    it('second test on retry blank page', function () {
      cy.get('body').should('not.exist')
    })
  })

@mschile
Copy link
Contributor

mschile commented Jan 21, 2025

Hi @shaju007 👋🏼, yes, I believe this issue is a duplicate of #28527. The fix will be in the next release. If you'd like, you can try out the prerelease from this commit and verify it fixes your issue. I'm going to close this issue for now.

@mschile mschile closed this as completed Jan 21, 2025
@shaju007
Copy link
Author

Thanks for checking the issue.

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

No branches or pull requests

2 participants