microsoftonline login and redirect back to application #24480
CypressBeginer05
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
-
Hi Everyone,
I am exploring Cypress v10.11.0 for one of my application.
I am trying to use cy.origin() feature , but not able to redirect back to my application after Microsoft login. Not sure what needs to be done to redirect back to my application.
Below is my flow:
User hit www.application.com
User is redirected to www.login.microsoftonline.com
User enters email click on NEXT button, password screen appears,
User enters password and click on Sign In, user gets authenticated and redirected to www.application.com.
Here is my code:
` describe('LoginApp', () => {
I have used beforeEach() as I want to get login only once to application, and then it should not ask me for login for my other pages.
Any suggestions , guidance will be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions