Skip to content

Commit 229e181

Browse files
committed
longer timeouts and more retries for windows ci
1 parent 6ac624b commit 229e181

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

integration/playwright.config.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import { devices } from "@playwright/test";
66
process.env.NODE_OPTIONS =
77
(process.env.NODE_OPTIONS ?? "") + ` --no-warnings=ExperimentalWarning`;
88

9+
const isWindows = process.platform === "win32";
10+
911
const config: PlaywrightTestConfig = {
1012
testDir: ".",
1113
testMatch: ["**/*-test.ts"],
@@ -15,14 +17,14 @@ const config: PlaywrightTestConfig = {
1517
external: ["**/packages/**/*"],
1618
},
1719
/* Maximum time one test can run for. */
18-
timeout: process.platform === "win32" ? 60_000 : 30_000,
20+
timeout: isWindows ? 60_000 : 30_000,
1921
fullyParallel: true,
2022
expect: {
2123
/* Maximum time expect() should wait for the condition to be met. */
22-
timeout: 5_000,
24+
timeout: isWindows ? 10_000 : 5_000,
2325
},
2426
forbidOnly: !!process.env.CI,
25-
retries: process.env.CI ? 3 : 0,
27+
retries: process.env.CI ? (isWindows ? 5 : 3) : 0,
2628
reporter: process.env.CI ? "dot" : [["html", { open: "never" }]],
2729
use: { actionTimeout: 0 },
2830

0 commit comments

Comments
 (0)