-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Cypress ignores session cookie change #26040
Comments
Hi @alsha , thanks for opening an issue and thank you for providing a reproduction case! There were a number of breaking changes around Cookie behaviors in Cypress 12 that may be impacting your test. It appears that there is some duplication of the Before digging in deeper I wanted to get a couple pieces of information:
|
Hi @mike-plummer , thank you for a quick reply! Here are my answers:
All manipulation of that cookie is being done only server-side.
It is all server-side 302 redirects.
MLOGIN_SESSION - Cookie is only processed by login.muenchen.de. By the way, here is one more interesting observation: if you open the dev tools, you can see the requests, performed by Cypress. The requests after login are all appear with correct new cookie value. But in reality it is not true... If you use proxy to sniff the traffic, you will see, that the cookie is old one. |
Could be duplicate of #25841 |
Thanks for the link, @o3-steven . It does appear to be related, but it's hard to say 100% whether it's a duplicate. @alsha I'll go ahead and pass this on to the team; they're already working on #25841, so once a fix is available for that we can have you confirm whether it resolves this issue for you |
Current behavior
Server (AUT) changes the value of session-cookie (name=MLOGIN_SESSION) after logging in.
BUT: Cypress continues to send the old cookie value to server.
Desired behavior
Cypress should be able to notice the cookie value change and send the new value with upcoming requests
Test code to reproduce
Config:
Cypress Version
12.7.0
Node version
v18.12.1
Operating System
Windows 10
Debug Logs
No response
Other
Cypress 11.* worked fine
The text was updated successfully, but these errors were encountered: