diff --git a/Auto Run Docs/SpecKit-web-header-analyzer-Phase-10-Playwright-E2E.md b/Auto Run Docs/SpecKit-web-header-analyzer-Phase-10-Playwright-E2E.md index 22ad403..ade8aca 100644 --- a/Auto Run Docs/SpecKit-web-header-analyzer-Phase-10-Playwright-E2E.md +++ b/Auto Run Docs/SpecKit-web-header-analyzer-Phase-10-Playwright-E2E.md @@ -82,7 +82,7 @@ All tasks in this phase are parallelizable [P] since they are independent E2E sp ## Completion - [x] All Playwright E2E specs pass: `npx playwright test` -- [ ] Both backend (uvicorn) and frontend (NextJS) start automatically via Playwright `webServer` config +- [x] Both backend (uvicorn) and frontend (NextJS) start automatically via Playwright `webServer` config - [ ] Visual regression baselines committed to `frontend/e2e/__snapshots__/` - [ ] Zero axe-core WCAG 2.1 AA violations across all tested views - [ ] No horizontal scrollbar or layout issues at any tested viewport (320–2560px) diff --git a/frontend/playwright.config.ts b/frontend/playwright.config.ts index dc2bee8..4e0eac0 100644 --- a/frontend/playwright.config.ts +++ b/frontend/playwright.config.ts @@ -1,4 +1,5 @@ import { defineConfig, devices } from '@playwright/test'; +import path from 'path'; /** * Read environment variables from file. @@ -76,7 +77,7 @@ export default defineConfig({ command: 'python -m uvicorn app.main:app --app-dir backend --port 8000', url: 'http://localhost:8000', reuseExistingServer: !process.env.CI, - cwd: '..', + cwd: path.resolve(__dirname, '..'), env: { WHA_CORS_ORIGINS: '["http://localhost:3100"]', }, @@ -85,6 +86,7 @@ export default defineConfig({ command: 'npm run dev -- --port 3100', url: 'http://localhost:3100', reuseExistingServer: !process.env.CI, + cwd: path.resolve(__dirname), }, ], });