1.3 KiB
Tip #10 — Playwright E2E smoke tests
Date: 2026-06-21
Category: devex
Source: MC-Survival Wiki Daily Tip (backfilled from state.json)
Note: Title was truncated in the original state.json log. Body matches the 'Search-Synonyms alias table' variant of the same idea.
Playwright E2E smoke tests
Stand up Playwright with a minimal smoke-test suite — home loads, recipe page renders, editor login works — running on every pull request via GitHub Actions. It solves the no-coverage problem: today every release is a manual test, and the result is a steady trickle of regressions that get caught in production by users. The signal is operational reality — the project has zero automated tests, which is fine for a prototype and unacceptable for a wiki other people depend on. Starting with three smoke tests, not 30, is the right scope: a single homepage-screenshot test catches the majority of 'it broke' regressions at near-zero maintenance cost.
Implementation tips
- Add @playwright/test as dev-dep, scaffold playwright.config.ts, write 3 tests: home loads, recipe page renders, editor login works.
- Run in CI on every PR (GitHub Actions: ubuntu-latest, npm ci, npx playwright install --with-deps, npx playwright test).
- Start with the homepage screenshot test — cheapest, catches 80% of 'it broke' regressions.