App being tested crashes after login out and login back into it after upgrading to Cypress 12.3.0 #25437
Unanswered
jgonzalezalbisu
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, we've migrated to Cypress 12.3.0 and we're facing some new problems with our old tests. I've read the release notes and found the handling of cookies and sessions is different now.
Without digressing, the tests which are failing are the ones that do a login, a logout and then another login again (with the same original account or another one). Something happens with the cookies that affects the server, and a 500 is shown in the app we're testing against.
Just to give you context, these logins and logouts are contained within a single test, not across several, meaning each test is atomic.
After the new login, the page crashes.

The only thing we have in this app is keycloak for the login which I'm not sure if it could be the culprit or even related to this problem, but I've tested the same simple flow in other sites where logins are needed and it doesn't happen. Also I've tried to set the
testIsolation:false
in ourcypress.config.ts
file, but the same thing happens.Any clues on why this is happening?
Beta Was this translation helpful? Give feedback.
All reactions