chore(test-infra): TEST-INFRA-001 — Playwright + visual regression + real-backend e2e foundation #21

Merged
bert.hausmans merged 9 commits from chore/test-infra-001 into main 2026-05-10 22:09:24 +02:00
Showing only changes of commit 9a63d5dcd2 - Show all commits

View File

@@ -79,6 +79,8 @@ is the most expensive tier.
## 2. When to use what — decision tree
*First match wins — stop at the first YES.*
```
Is the thing under test pure logic with no DOM?
└─ YES → Unit (Vitest + happy-dom)
@@ -136,7 +138,7 @@ stabilization B5).
pnpm test:visual:update
```
Reviews PNG diffs in PRs. Baselines live at:
Diffs are reviewed in PRs. Baselines live at:
```
apps/app/tests/playwright-ct/__screenshots__/visual/<spec-path>/<name>.png
```
@@ -333,8 +335,7 @@ For Playwright tests to run, the host must have:
- F4 isolated component-level visual baselines (replacing the
composite baselines in B3 with per-state baselines using stable
`data-test-id` attributes).
- F4 multi-context concurrent-edit e2e tests (currently the 409
contract test uses single-context replay).
- Multi-context concurrent-edit e2e patterns — see TEST-INFRA-002 in BACKLOG.md
- Multi-browser (Firefox, WebKit) baselines — Linux+Chromium only
for v1 per RFC §A.5.
- Mobile viewport baselines — desktop 1440×900 only for v1.