Uploaded June 2025 | Updated November 2026, 38 minutes ago
Learn how to set up end-to-end testing with Playwright for Next.js applications using Auth0 authentication (or any managed auth solution). This tutorial walks through:
00:00 - Intro
00:33 - Configuring Playwright test scripts in package.json
02:06 - Creating test helpers for auth workflows (sign up, sign in, sign out)
03:52 - Debugging Playwright tests using the UI Explorer and recorder
05:37 - Handling selectors for auth form elements
12:22 - Setting up test projects with different configurations
13:11 - Optimizing test performance by caching auth sessions
Perfect for front-end developers looking to add reliable auth testing to their Next.js applications. The tutorial demonstrates how to create both smoke tests for basic auth flow verification and feature tests for specific routes.
Explainer blog with Code: link.testdouble.com/f0a6ff
Code: github.com/testdouble/nextjs-e2e-test-example
Learn how to set up end-to-end testing with Playwright for Next.js applications using Auth0 authentication (or any managed auth solution). This tutorial walks through:
00:00 - Intro
00:33 - Configuring Playwright test scripts in package.json
02:06 - Creating test helpers for auth workflows (sign up, sign in, sign out)
03:52 - Debugging Playwright tests using the UI Explorer and recorder
05:37 - Handling selectors for auth form elements
12:22 - Setting up test projects with different configurations
13:11 - Optimizing test performance by caching auth sessions
Perfect for front-end developers looking to add reliable auth testing to their Next.js applications. The tutorial demonstrates how to create both smoke tests for basic auth flow verification and feature tests for specific routes.
Explainer blog with Code: link.testdouble.com/f0a6ff
Code: github.com/testdouble/nextjs-e2e-test-example










