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: do not override existingSession setup #21226
fix: do not override existingSession setup #21226
Conversation
Thanks for taking the time to open a PR!
|
7978074
to
80eb88a
Compare
Use `existingSession.setup` instead of overriding with server stored session because of string serialization.
80eb88a
to
acaeaf8
Compare
@samtsai This issue has been on my radar for getting Sessions ready for GA support (hopefully soon) and am grateful for your contribution! |
Glad to help! I love using Cypress every day and am looking forward to this feature. |
I don't have access to re-run those failing tests but from what I can see I don't think it's caused by my test. The failing one is labeled flaky. |
@samtsai ahh thanks for calling this out! I've been trying to keep an eye on this and got distracted. Just kicked if off again. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Use
existingSession.setup
instead of overriding with server storedsession because of string serialization.
This applies the fix mentioned by @bahmutov #17805 (comment)
User facing changelog
Fixed an issue with
cy.session
where hard refresh of a test in open mode would fail to recreate the session due to aTypeError: existingSession.setup is not a function
.How has the user experience changed?
Before
After
PR Tasks
cypress-documentation
?type definitions
?cypress.schema.json
?