MAESTRO: fix playwright webServer cwd

This commit is contained in:
Mariusz Banach
2026-02-18 07:00:25 +01:00
parent 41e2e3d570
commit 21bec460a1
2 changed files with 4 additions and 2 deletions

View File

@@ -82,7 +82,7 @@ All tasks in this phase are parallelizable [P] since they are independent E2E sp
## Completion ## Completion
- [x] All Playwright E2E specs pass: `npx playwright test` - [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__/` - [ ] Visual regression baselines committed to `frontend/e2e/__snapshots__/`
- [ ] Zero axe-core WCAG 2.1 AA violations across all tested views - [ ] Zero axe-core WCAG 2.1 AA violations across all tested views
- [ ] No horizontal scrollbar or layout issues at any tested viewport (3202560px) - [ ] No horizontal scrollbar or layout issues at any tested viewport (3202560px)

View File

@@ -1,4 +1,5 @@
import { defineConfig, devices } from '@playwright/test'; import { defineConfig, devices } from '@playwright/test';
import path from 'path';
/** /**
* Read environment variables from file. * Read environment variables from file.
@@ -76,7 +77,7 @@ export default defineConfig({
command: 'python -m uvicorn app.main:app --app-dir backend --port 8000', command: 'python -m uvicorn app.main:app --app-dir backend --port 8000',
url: 'http://localhost:8000', url: 'http://localhost:8000',
reuseExistingServer: !process.env.CI, reuseExistingServer: !process.env.CI,
cwd: '..', cwd: path.resolve(__dirname, '..'),
env: { env: {
WHA_CORS_ORIGINS: '["http://localhost:3100"]', WHA_CORS_ORIGINS: '["http://localhost:3100"]',
}, },
@@ -85,6 +86,7 @@ export default defineConfig({
command: 'npm run dev -- --port 3100', command: 'npm run dev -- --port 3100',
url: 'http://localhost:3100', url: 'http://localhost:3100',
reuseExistingServer: !process.env.CI, reuseExistingServer: !process.env.CI,
cwd: path.resolve(__dirname),
}, },
], ],
}); });