Skip to content

Conversation

@ajworkos
Copy link
Owner

@ajworkos ajworkos commented Nov 11, 2025

Overview

This PR is built off the experimental test mode for playwright documentation in NextJS.

What's Added

Proxy Mode

next.config.js now starts the server using the experimental test proxy

  experimental: {
    testProxy: process.env.NODE_ENV !== "production",
  },

Proxying Requests

We intercept the request to user_management/authenticate for the refresh token grant using a playwright fixture and return a mock access token and user that can then be used to test the application.

Playwright Version

The current example app runs on a version of next that requires playwright 1.41.2 to be used in order to use it's experimental proxy mode as seen here.

@ajworkos ajworkos force-pushed the proxied-e2e-tests branch 2 times, most recently from 6b6f8dd to d21d72e Compare November 11, 2025 02:11
@ajworkos ajworkos changed the title Playwright Using NextJS Experiment Proxy Playwright Using NextJS Experimental Proxy Nov 11, 2025
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

Successfully merging this pull request may close these issues.

2 participants