I'm trying to test an app which uses Auth0 for auth. The Auth0 account is federated with Azure AD, all logins gets redirect to Azure AD where the user enters its credentials. Because of restrictions that is out of my control we have to follow this flow even in the Cypress based tests, using ROPC is not an option.
The problem I'm having is that when Auth0 redirects to Azure AD it completly takes over the browser, loosing the Cypress test context. Is there any way this can be avoided or do I have to take care of the login outside of the Cypress tests somehow?
These are the steps that we do in the tests:
Any ideas? Thanks!