References
How to Run e2e Test (in local machine)
- Build production with
pnpm build, then run the production build using pnpm start.
- Open another terminal (or new terminal tab, don’t cancel / close the production server), then run the test with
pnpm test:e2e.
References:
- https://nextjs.org/docs/app/building-your-application/testing
- https://nextjs.org/docs/app/building-your-application/testing/playwright
- https://nextjs.org/docs/app/building-your-application/testing/playwright#running-your-playwright-tests