From 3839cec161412847bc55006b6ba25e7160370507 Mon Sep 17 00:00:00 2001 From: Xon <635541+Xon@users.noreply.github.com> Date: Thu, 5 Sep 2024 13:02:23 +0800 Subject: [PATCH] Adjust timeouts for e2e CI --- playwright.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playwright.config.ts b/playwright.config.ts index 4c50fc26..8dc3db4c 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -25,9 +25,9 @@ const config: PlaywrightTestConfig = { workers: process.env.CI ? 1 : undefined, /* Reporter to use. See https://playwright.dev/docs/test-reporters */ reporter: process.env.CI ? [['dot'], ['blob']] : 'line', - timeout: 2000, + timeout: process.env.CI ? 5000 : 1000, expect : { - timeout: 500, + timeout: process.env.CI ? 1000 : 500, }, /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ use: {