sir-dunxalot / cypress-nextjs-auth0

Cypress commands to support Auth0 and Next.js
60 stars 24 forks source link

feat: add realm to login function #56

Open jes3rk opened 2 years ago

jes3rk commented 2 years ago

Notes

Came across an issue where users created in a non-default connection could not be authorized in testing.

What I did

How to test

  1. Create a new connection in auth0
  2. Enable the connection on your auth0 application
  3. Create a new user in auth0 that uses the connection created in step 1
  4. Update cypress.env.json with the new username/password and add auth0Realm: <your new connection name>
  5. Run tests