test: harden MVP QA gate

This commit is contained in:
vince 2026-06-18 19:50:28 +02:00
parent 081d6085a5
commit bdb02daa96
11 changed files with 479 additions and 44 deletions

View file

@ -22,7 +22,7 @@ This MVP uses Drizzle with Bun SQLite for local file-backed persistence.
- `bun run check`: run Svelte and TypeScript checks.
- `bun run test`: run Vitest.
- `bun run test:unit`: run Vitest explicitly as the unit test stage.
- `bun run test:e2e`: run Playwright browser smoke and QA checks.
- `bun run test:e2e`: build and run Playwright browser smoke and QA checks.
- `bun run test:qa`: run the MVP release gate.
- `bun run build`: build the production app.
- `bun run preview`: preview the production build.
@ -90,9 +90,13 @@ bun run test:qa
The gate runs Svelte/TypeScript checks, Vitest coverage for model,
persistence, renderer, datasource mocks, and presentation boundaries, the
production build, the static Storybook build, and Playwright desktop/mobile
smoke checks. Playwright also performs basic screenshot sanity checks,
keyboard-focus checks, reduced-motion checks, landmark checks, and axe
accessibility checks against the real model-driven route.
smoke checks against the built adapter output. Playwright also performs
baseline screenshot checks, keyboard navigation checks, reduced-motion checks,
landmark checks, and axe accessibility checks against the real model-driven
route.
Playwright uses an isolated SQLite database per run unless
`PLAYWRIGHT_DATABASE_URL` is set explicitly.
Presentation code is checked for Dimension Lab content leakage. Environment
specific labels, links, icon names, fallback values, and datasource references