From 084820cb79b83a8d16a0f26afea604d362f49aff Mon Sep 17 00:00:00 2001 From: lucaronin Date: Mon, 30 Mar 2026 17:48:05 +0200 Subject: [PATCH] docs: Playwright only for core flows, < 10 min budget, cosmetic changes use Vitest --- CLAUDE.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index a1947a5b..17b55dee 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -38,9 +38,11 @@ This moves the task to In Review, notifies Brian, and self-dispatches the next t nal (steps 1–3 above). -**Phase 1 — Playwright (you):** +**Phase 1 — Playwright (you, only when needed):** -Write a smoke test in `tests/smoke/.spec.ts` covering every acceptance criterion. Must fail before fix, pass after. +Write a smoke test in `tests/smoke/.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 &