How to integrate with Cypress on an application that uses Organisations?

Hi,

We are wanting to adopt Cypress for end-to-end testing of our application that has authentication in Auth0. This article was quite useful: End-to-End Testing with Cypress and Auth0.

However, the application we’re building uses the Organisations feature of Auth0, and it seems that the required “Password” grant type mentioned in the article is not supported when organisations are in use. Screenshot:

Is that correct? If so, why is it not supported? And what is the recommended alternative for automatic authentication in testing in this scenario?

Thanks.

2 Likes

@Richard-nz, did you ever find a legitimate solution for this?

Yes we are using a Cypress task to run Puppeteer to do the login then querying its local storage and setting that inside the Cypress test runs. Seems to work ok, but not ideal

1 Like