You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am testing a flow in an application which uses an authorization code flow with a redirect to a backend API. The backend API gets redirected to with the authorization code and then acquires the token and calls a few APIs on behalf of the user. The problem is when a user initiates the login to Microsoft (login.microsoftonline.com) Cypress redirects the entire page as opposed to the cypress testing iframe (thus ending the test).
My question is does anyone know of a work around for this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am testing a flow in an application which uses an authorization code flow with a redirect to a backend API. The backend API gets redirected to with the authorization code and then acquires the token and calls a few APIs on behalf of the user. The problem is when a user initiates the login to Microsoft (login.microsoftonline.com) Cypress redirects the entire page as opposed to the cypress testing iframe (thus ending the test).
My question is does anyone know of a work around for this?
Beta Was this translation helpful? Give feedback.
All reactions