Skip to content
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.initial cookie expired date causing signin side-effects #29370

Open
jj497 opened this issue Apr 20, 2024 · 0 comments
Open

__cypress.initial cookie expired date causing signin side-effects #29370

jj497 opened this issue Apr 20, 2024 · 0 comments
Labels
stage: needs investigating Someone from Cypress needs to look at this

Comments

@jj497
Copy link

jj497 commented Apr 20, 2024

Current behavior

Testing Login on a 3rd party website.
__cypress.initial cookie is set with domain of the 3rd party (target) website that expires 1970-01-01T00:00:00.000Z. This cookie is visible under the cookie tab of the login request.
As a result, subsequent calls to complete the login fail because of an expired token.

Since I don't own the login page, I can't update the logic. However, I know this is the issue because
I've retested changing the first visit url to another website in order to change the domain of the __cypress.initial cookie. Login is successful, but the dashboard page takes forever to load.

Desired behavior

set __cypress.initial cookie with an expire property in the future like 2070-01-01T00:00:00.000Z

Test code to reproduce

N/A

Cypress Version

13.7.1

Node version

v21.2.0

Operating System

macOS 12.7.3

Debug Logs

No response

Other

Success without cypress initial cookie
Expired Cookie Response

Attached is a screenshot of the failure in the Cypress test suite with the __cypress.initial cookie. As you can see it has the 'athena' domain and comes back with an expired value of '1970-01-01' on the document and the error "You session has timed out....Please login again."
Also attached is another screenshot of success on the same browser, but a different tab. The complete.esp document does not contain the __cypress.intitial cookie and login proceeds as expected.

Because the login is on a 3rd party partner (athena) I can't reproduce the issue myself on our own servers but I hope the attached screenshots are sufficient evidence of the issue.

I couldn't reopen it so I'm tagging the original issue raised here: #29268

@jennifer-shehane jennifer-shehane added the stage: needs investigating Someone from Cypress needs to look at this label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage: needs investigating Someone from Cypress needs to look at this
Projects
None yet
Development

No branches or pull requests

2 participants