From f74330dffe2e31115d301ac2259b3ad78ee6f6db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bel=C3=A9n=20Albeza?= Date: Wed, 22 May 2024 16:45:12 +0200 Subject: [PATCH] :sparkles: Add more timeout for playwright expects on CI --- frontend/playwright.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/playwright.config.js b/frontend/playwright.config.js index c5a16ddb1..5446e6967 100644 --- a/frontend/playwright.config.js +++ b/frontend/playwright.config.js @@ -19,6 +19,10 @@ export default defineConfig({ retries: process.env.CI ? 2 : 0, /* Opt out of parallel tests by default; can be overriden with --workers */ workers: 1, + /* Timeout for expects (longer in CI) */ + expect: { + timeout: process.env.CI ? 20000 : 5000, + }, /* Reporter to use. See https://playwright.dev/docs/test-reporters */ reporter: "html", /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */