Origin changes during cy.origin() #28948
Replies: 3 comments
-
I have exactly the same error since about week ago. All was fine for a year since I stated working in Cypress and when I tried to start my tests on 23.02.24 I ended up on same error as the OP. In my case the code is basically a copy of what is posted on official Cypress site (https://docs.cypress.io/guides/end-to-end-testing/azure-active-directory-authentication). Here is how the process looks- I start the test on my PC from Cypress App, the URL of the dev environment of my app is opened, which redirects to login.microsoftonline.com, email and password are entered automatically, no errors there. The login is successful, the app's loading page is displayed, but the test doesn't start. After a while the error is displayed:
Here is the code which I have in e2e.js file
|
Beta Was this translation helpful? Give feedback.
-
I finally found out what was the issue with my code. It was this part after entering the password:
Not sure if this was a global change from Microsoft or something that was done inside my company, but previously, after entering the password user was asked, if I remember correctly, if he wants to stay signed in or something similar. Now this prompt doesn't show up and the app is opened right after entering password and clicking on Next button. |
Beta Was this translation helpful? Give feedback.
-
My problem is a little different. The user is already signed in, don't know how.
|
Beta Was this translation helpful? Give feedback.
-
If I'm already logged in to Microsoft, then Microsoft redirects me back to my app.
How should I solve this problem?
Beta Was this translation helpful? Give feedback.
All reactions