-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
setCookies is broken since 9.0.0. ~
is converted to \x7e
#19096
Comments
I figured out what the issue is. With 9.x the a Here are simple steps to reproduce the problem.
Note how the Dev Tools shows When you look at the Doing the same above with Cypress 8.7.0 will show the |
~
is converted to \x7e
Video showing that the cookie isn't set correctly, but when manually changing demobug.mov |
This seems to be a regression in 9.1.0. Similar issues using different commands: |
@chrisbreiding This is broken since 9.0.0. At least what I am reporting in this ticket is, not sure about the other tickets. |
The code for this is done in cypress-io/cypress#19239, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
After calling setCookie with a valid cookie and then loading the desired page the cookies are somehow not accepted or read. The page we load should show the user is logged in, but he appears as if the cookies are not there. The Network Application Cookies show that they are set, but the page that is loaded doesn't seem to either see them or read them. Note in this example baseUrl is not set, but I tried it with it being set and not. Same behavior.
I ran 8.7.0 and 9.0.0 and 9.0.1. Its broken since 9.0.0. Tested on Chrome, Firefox and Electron. Broken in all 3.
In 8.7.0 the user appears to be logged in, in 9.* the user is not.
Desired behavior
User should be logged in after calling setCookies and then visiting the destination url. In this example when I run the provided code and www.yahoo.com is loaded and I move the mouse over the top right
mail
icon I see the user as logged in.See screen shot for Cypress 8.7.0
Now when running with 9.0.0 you will see this. As if the user is not signed in.
Test code to reproduce
I can't give you fully reproducible code, because I can't provide you with the way we get our cookies. Here is the basic script with a hardcoded sample cookie value.
Cypress Version
9.*
Other
No response
The text was updated successfully, but these errors were encountered: