Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

161
Views
Login in Cypress based test with fedrated login provider (multiple redirects)

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:

  1. Navigate to app and click login
  2. Gets redirected to Auth0
  3. Enter email and submit
  4. Gets redirected to Azure AD (the entire window is now Azure AD login page and Cypress can't interact with the page)

Any ideas? Thanks!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!