New cy.session() feature problem in e2e testing #21625
Replies: 2 comments
-
I have the same issue too |
Beta Was this translation helpful? Give feedback.
-
We have taken this feedback and feedback from the Experimental Discussion and as at team we evaluated the test isolation behavior and found it wasn't behaving how users expected and have made adjustments. A
To accomplished the example provided above, you will need to set |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
Since you are introducing a new cy.session() approach, I'm worried about handling e2e tests. My e2e test scenario looks like this
Now with cy.session() introdced, I have to place cy.visit() in each it() before firing any custom command to avoid landing in blank:page.
Is there any other way to handle this kind of issue?
In previous version I used only Cypress.Cookies.preserveOnce('_contador_session'); to store cookie while going through application, and it worked just fine.
Beta Was this translation helpful? Give feedback.
All reactions