From 44e7e15959fa3dc9762b48592fcc4eb0c45b6718 Mon Sep 17 00:00:00 2001 From: aasim Date: Tue, 23 Apr 2024 16:53:48 -0400 Subject: [PATCH] updated playwright config to start server before executing tests --- frontend/playwright.config.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/playwright.config.ts b/frontend/playwright.config.ts index d9a07f774..e2a43e4c5 100644 --- a/frontend/playwright.config.ts +++ b/frontend/playwright.config.ts @@ -96,4 +96,10 @@ export default defineConfig({ // url: 'http://127.0.0.1:3000', // reuseExistingServer: !process.env.CI, // }, + webServer: { + command: "docker compose --env-file ../.env.dev up --build", + port: 3000, + timeout: 120 * 1000, + reuseExistingServer: !process.env.CI, + }, });