File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ import { devices } from "@playwright/test";
6
6
process . env . NODE_OPTIONS =
7
7
( process . env . NODE_OPTIONS ?? "" ) + ` --no-warnings=ExperimentalWarning` ;
8
8
9
+ const isWindows = process . platform === "win32" ;
10
+
9
11
const config : PlaywrightTestConfig = {
10
12
testDir : "." ,
11
13
testMatch : [ "**/*-test.ts" ] ,
@@ -15,14 +17,14 @@ const config: PlaywrightTestConfig = {
15
17
external : [ "**/packages/**/*" ] ,
16
18
} ,
17
19
/* Maximum time one test can run for. */
18
- timeout : process . platform === "win32" ? 60_000 : 30_000 ,
20
+ timeout : isWindows ? 60_000 : 30_000 ,
19
21
fullyParallel : true ,
20
22
expect : {
21
23
/* Maximum time expect() should wait for the condition to be met. */
22
- timeout : 5_000 ,
24
+ timeout : isWindows ? 10_000 : 5_000 ,
23
25
} ,
24
26
forbidOnly : ! ! process . env . CI ,
25
- retries : process . env . CI ? 3 : 0 ,
27
+ retries : process . env . CI ? ( isWindows ? 5 : 3 ) : 0 ,
26
28
reporter : process . env . CI ? "dot" : [ [ "html" , { open : "never" } ] ] ,
27
29
use : { actionTimeout : 0 } ,
28
30
You can’t perform that action at this time.
0 commit comments