Playwright can mock browser requests, but not the fetches your Next.js server makes during SSR. Here is how I record real API responses once and replay them deterministically on CI, with the backend turned off.
Tag
Playwright
1 post tagged “Playwright”.