From d5a321f314c6554e001669d0426298116e566faa Mon Sep 17 00:00:00 2001 From: Jack Kingsman Date: Mon, 9 Feb 2026 21:09:20 -0800 Subject: [PATCH] Do build before e2e tests and bump timeout for build --- tests/e2e/playwright.config.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/e2e/playwright.config.ts b/tests/e2e/playwright.config.ts index 292cb7d..85df888 100644 --- a/tests/e2e/playwright.config.ts +++ b/tests/e2e/playwright.config.ts @@ -35,11 +35,12 @@ export default defineConfig({ ], webServer: { - command: 'uv run uvicorn app.main:app --host 127.0.0.1 --port 8000', + command: + 'bash -c "if [ ! -d frontend/dist ]; then cd frontend && npm install && npm run build; fi; uv run uvicorn app.main:app --host 127.0.0.1 --port 8000"', cwd: projectRoot, port: 8000, reuseExistingServer: false, - timeout: 30_000, + timeout: 180_000, env: { MESHCORE_DATABASE_PATH: path.join(tmpDir, 'e2e-test.db'), // Pass through the serial port from the environment