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
Polly.js
1 post tagged “Polly.js”.
Tag
1 post tagged “Polly.js”.
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.