mirror of
https://github.com/mgeeky/decode-spam-headers.git
synced 2026-02-22 05:23:31 +01:00
MAESTRO: fix playwright webServer cwd
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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),
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user