E2E Testing Next.js Apps with Playwright: Setup, Patterns, and CI Integration

How to set up Playwright for a Next.js app, write tests that don't break on every deploy, and run them in GitHub Actions CI.