From a649ed08e7af285b7c1923b055db7d265b0787dc Mon Sep 17 00:00:00 2001 From: diecodev Date: Wed, 8 May 2024 01:18:17 -0500 Subject: [PATCH] test: improve playwright config --- playwright.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/playwright.config.ts b/playwright.config.ts index 7854ec7..10e9406 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -16,12 +16,13 @@ const config: PlaywrightTestConfig = { /* Run tests in files in parallel */ fullyParallel: true, forbidOnly: !!process.env.CI, - retries: 2, + retries: process.env.CI ? 2 : 0, workers: process.env.CI ? 1 : undefined, reporter: "html", use: { actionTimeout: 0, trace: "on-first-retry", + baseURL: "http://localhost:5173", }, projects: [ { @@ -42,6 +43,7 @@ const config: PlaywrightTestConfig = { command: "npm run dev", cwd: "./test", port: 5173, + url: "http://localhost:5173", reuseExistingServer: !process.env.CI, }, };