From d414e9971423b666147f8905c0e22b92a4e1bbc8 Mon Sep 17 00:00:00 2001 From: Arianrhod Sandlot Date: Wed, 27 Sep 2023 12:24:05 +0800 Subject: [PATCH] test: fix test in ci --- tests/e2e/playwright.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/playwright.config.ts b/tests/e2e/playwright.config.ts index 1a9d38d..196f599 100644 --- a/tests/e2e/playwright.config.ts +++ b/tests/e2e/playwright.config.ts @@ -9,6 +9,6 @@ export default defineConfig({ baseURL: 'http://localhost:5173', trace: 'on-first-retry', }, - // webServer: { command: 'pnpm dev', url: 'http://127.0.0.1:5173', reuseExistingServer: true }, + webServer: { command: 'pnpm dev', url: 'http://127.0.0.1:5173', reuseExistingServer: !process.env.CI }, expect: { toHaveScreenshot: { maxDiffPixelRatio: 0.05 } }, })