Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth0 with Next.js App Router can not be tested using Cypress E2E Testing #1697

Open
6 tasks done
gripzyyy opened this issue Mar 11, 2024 · 0 comments
Open
6 tasks done

Comments

@gripzyyy
Copy link

Checklist

Description

Hello! For days now I have been trying to write Cypress E2E tests for my app that uses the Next.js 14 App Router and auth0. I have followed this guide: https://docs.cypress.io/guides/end-to-end-testing/auth0-authentication
I searched everywhere for an example on how to use Next.js App Router + Auth0 + Cypress for testing and have yet to be successful.
The test will only run up to the point where the "Continue" button on the auth0 login page is pressed, then I will get ERR_CALLBACK_HANDLER_FAILURE and the tests will not route back to my application.

Reproduction

  1. Clone this repository I have created with the issue: https://github.com/gripzyyy/Auth0-Cypress-Next-App-Router
  2. npm install
  3. npm run cypress:open
  4. Run the test and see authentication failing to route back to the application and throwing.

Additional context

No response

nextjs-auth0 version

3.5.0

Next.js version

14.1.3

Node.js version

20.9.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant