docs(docs): V1-1.3 dialogs, browser tests and the D11 comparison

Contract §11.6: D13 final behaviour of the native modal dialog, D14 as built against the isolated stack, the three mobile navigation sources and their consequences for Clients and Animaux. BROWSER_TESTS.md: suites, prerequisites, guarantees, failures, limits. TEST_STRATEGY, SUPABASE §5.1, FRONTEND snapshot note, CLAUDE.md.
This commit is contained in:
bchanot committed 2026-10-25 23:37:00 +01:00
1 parent 9b2a4bc6fc
commit 9cd33f1217
6 files changed
+196 -16

No files matched your search

+6 -1
View File
@@ -21,6 +21,11 @@ pgTAP files (`013_clients.sql`, 130 checks; 661 in all); the isolated stack is
a project tool (`pnpm db:sandbox`, SUPABASE.md §5.1) with its own suite under
`packages/supabase/tests/sandbox` (28 real-stack checks: HTTP per role,
concurrency, budget races, 20 000-client search timing).
V1-1.3 (2026-10-25): the first real-browser suites (D14,
`docs/development/BROWSER_TESTS.md`): Playwright 1.64.1 with axe 4.14.0 on
Chromium, desktop and 375 × 667, under `apps/app/e2e`. `pnpm e2e:ui` (no
backend) 26 cases, `pnpm e2e:shell` (isolated stack) 6 cases; vitest app 458
(Dialog and avatar confirmation wiring added).
## 1. Layers
@@ -31,7 +36,7 @@ concurrency, budget races, 20 000-client search timing).
| Integration (app ↔ local Supabase) | vitest with `supabase start`, test users created via the admin API in a fixture | `apps/app/tests/integration` | CI job with the Supabase stack |
| Database (schema, functions, triggers) | pgTAP via `supabase test db` | `supabase/tests/db` | CI, before app tests |
| RLS | pgTAP, per table, per role | `supabase/tests/rls` | CI, release gate |
| End-to-end | Playwright against `pnpm preview` + local Supabase | `apps/app/e2e` | CI nightly + release gate |
| End-to-end | Playwright and axe on Chromium (desktop, 375 px) against a loopback Vite dev server: no backend (`pnpm e2e:ui`) or the isolated stack (`pnpm e2e:shell`), never DEV; request allowlist, fixture values kept out of URLs | `apps/app/e2e` (`docs/development/BROWSER_TESTS.md`) | `e2e:ui` in `pnpm check:all` when the pinned Chromium is installed (SKIPPED line otherwise); `e2e:shell` by hand with `pnpm db:sandbox up`; CI nightly + release gate planned |
| Migration | `supabase db reset` from zero + seed + regression fixtures | CI | every PR touching `supabase/` |
| PDF regression | cargo: the R4 oracles (O1 draw logs, O2 PDFs, O4 to O10) and the R4 digests of the writer's own bytes; vitest: the Step 6 goldens read back from the app export's file (`tests/helpers/pdfFile.ts`, no pdf-lib), the attachment roundtrip through the module's reader, the N-1 readers | `crates/core/tests/pdf_*.rs`, `apps/app/tests/unit/pdf.*.test.ts`, `packages/core-wasm/tests/pdf-*.test.ts` | CI |
| SQL/TS contract | generated types diff check | CI | every PR touching `supabase/` |