Stage 5 track
Track: Testing and quality at scale
Who it's for: you've finished Stage 4's capstone, already have a Vitest + Testing Library suite from Stage 3, Part 14, and want to own the testing and CI side of a frontend codebase rather than ship features yourself — the engineer a team trusts to say "merge is safe."
Learn (in order): Playwright for real end-to-end browser tests, as the layer above Stage 3's component-level Testing Library tests — a real browser clicking through actual routes instead of a simulated DOM → visual regression basics (Playwright's own screenshot assertions, or a dedicated tool) for catching UI drift that a passing functional test won't flag → test data and environment setup for e2e runs against the Stage 4 capstone's routes, including the protected-route login flow → wiring unit (Vitest), component (Testing Library), and e2e (Playwright) tests into a single GitHub Actions workflow → branch protection so a push with a failing test can't merge, turning the Stage 4 capstone's "test suite passes" checkbox into an enforced gate instead of a manual step.
Capstone brief (to be written in full): a CI pipeline, built on top of the Stage 4 capstone, that runs the existing Vitest/Testing Library suite plus a new Playwright e2e suite (covering at minimum the list → detail flow and the protected-route redirect) on every push via GitHub Actions, with merges gated on all of them passing and a visible status badge in the repo's README. Full user stories, milestones and an acceptance checklist will be added when this track's content wave begins.
What this brief does not claim: no Playwright project or GitHub Actions workflow was installed
or run while writing this course (see ../TOOLING.md) — unlike Stages 1–4, where
every snippet was run in a real Vite dev server or under Vitest and verified before publication.
Treat every detail above as a design-time plan, not a tested lesson, until the content wave installs
Playwright and verifies a passing CI run the same way TOOLING.md verified the Vite scaffold.
Official docs to use when this wave starts: https://playwright.dev/docs/intro, https://testing-library.com/docs/react-testing-library/intro/, https://vitest.dev/, https://docs.github.com/en/actions