-
Notifications
You must be signed in to change notification settings - Fork 667
test: clear the session token before login #8289
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
test: clear the session token before login #8289
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
5b1ec4a to
e4a4093
Compare
|
/lgtm |
|
Quota exceeded /retest |
|
/retest |
TheRealJon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
Unfortunately, even with this change we're still randomly getting 401 errors when viewing a project's details, which kicks us to the login page. Here's a video of it happening. |
|
Hmm interesting. Some kind of delay for the last logout to take effect? |
c04b6db to
f59ed29
Compare
|
/retest |
0b408ce to
a44c1d7
Compare
Sometimes Cypress will not correctly clear the session cookie on logout when running in CI, possibly due to a Cypress bug in cookie handling. We have not been able to reproduce manually or running the tests outside of CI. Work around the problem by clearing the cookie manually before login. Enable cookie debugging in Cypress to help troubleshoot similar problems in the future. This also changes the login command to use `window.SERVER_FLAGS.authDisabled` to detect a local development environment regardless of whether `BRIDGE_KUBEADMIN_PASSWORD` is set.
a44c1d7 to
8aa3db6
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dtaylor113, spadgett, TheRealJon, zherman0 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/hold cancel |
|
/retest |
|
/retest |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest |
|
/retest |
Sometimes Cypress will not correctly clear the session cookie on logout
when running in CI, possibly due to a Cypress bug in cookie handling. We
have not been able to reproduce manually or running the tests outside of
CI. Work around the problem by clearing the cookie manually before login.
Enable cookie debugging in Cypress to help troubleshoot similar problems
in the future.
This also changes the login command to use
window.SERVER_FLAGS.authDisabledto detect a local development environment regardless of whether
BRIDGE_KUBEADMIN_PASSWORDis set.