docs: Playwright only for core flows, < 10 min budget, cosmetic changes use Vitest

This commit is contained in:
lucaronin
2026-03-30 17:48:05 +02:00
parent 56ceee20e9
commit 084820cb79

View File

@@ -38,9 +38,11 @@ This moves the task to In Review, notifies Brian, and self-dispatches the next t
nal (steps 13 above).
**Phase 1 — Playwright (you):**
**Phase 1 — Playwright (you, only when needed):**
Write a smoke test in `tests/smoke/<slug>.spec.ts` covering every acceptance criterion. Must fail before fix, pass after.
Write a smoke test in `tests/smoke/<slug>.spec.ts` only if the feature touches a **core user flow**: vault open, note create/save/delete, search, wikilink navigation, git commit/push, conflict resolution. Do NOT write Playwright tests for cosmetic/UI-only changes (padding, chip size, label text, color, border) — use Vitest instead.
The full Playwright suite must stay under **10 minutes**. If your new test would push it over, remove an existing non-core test first.
```bash
pnpm dev --port 5201 &