Cypress changes user during test #18916
Christian1und0
started this conversation in
General
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.
-
This is probably the weirdest issue I have encountered so far. I log in as Administrator (credentials are stored in environment in cypress.json config file), run the following test and mid test I am suddenly logged in as another (non-Administrator) account. The weird thing is this:
I am going to post the complete code and mark the spot where the change occurs:
Custom command:
Now here is what happens:
So how is this possible that I get logged in as a different user mid-test, especially when the credentials for that user are not used anywhere in this test?
Beta Was this translation helpful? Give feedback.
All reactions