feat(07-01): add playwright.config.ts with two-profile device matrix

- Two projects: iphone/WebKit (iPhone 14) + pixel/Chromium (Pixel 7)
- serviceWorkers: 'block' on both profiles per D-02/Pitfall 15
- env-driven baseURL via PLAYWRIGHT_BASE_URL (D-08/Rule 8)
- globalSetup ref to e2e/global-setup.ts (Plan 02 implements)
- webServer manages vite only with reuseExistingServer (D-10)
- no storageState, no toHaveScreenshot per D-01/UI-SPEC Rule 6
- add e2e/global-setup.ts placeholder (stub) so config path resolves
This commit is contained in:
Lucas Berger
2026-06-11 01:41:44 -04:00
parent 0c24f77bdb
commit 44fea2c5e2
2 changed files with 80 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
/**
* global-setup.ts — Phase 7 Plan 02 will implement this
*
* Placeholder to satisfy Playwright config path resolution.
* Plan 02 replaces this with:
* - health poll on baseURL/health (D-08 readiness gate)
* - mysql2 DB seed: TRUNCATE + INSERT onto calendar id=10 + lists for user 1 (D-05/D-06/D-07)
*
* Run:
* pnpm --filter @familysync/pwa test:e2e
*/
export default async function globalSetup(): Promise<void> {
// Implemented in Plan 02
}