I have a React app, and normally the tests work like clockwork. However, we’re switching authentication providers from Okta to Auth0. Currently, we have a separate branch from our main one where we’ve swapped out all the Okta stuff for Auth0. This includes adding the proper environment variables. I can locally run the tests on the Auth0 branch successfully. The same tests run fine in CircleCI on the main branch with Okta. The problem is in CircleCI they become slow and flaky. In the videos under the artifacts tab, I notice things like the tests hanging on the Auth0 universal login page, and on some successful logins but not all the time, the app just rerendering over and over again. What’s going on?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
E2e Testing React SPA with Cypress | 6 | 6388 | February 21, 2020 | |
User/ssodata 404 happens intermittently | 3 | 5861 | March 25, 2020 | |
Using Cypress.io with Auth0 login | 3 | 8813 | September 3, 2020 | |
Updating auth0-react login state during cypress test | 2 | 4343 | August 19, 2020 | |
Auth0-React State | 2 | 699 | September 11, 2023 |