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

@@ -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),
},
],
});