File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 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";
66process . env . NODE_OPTIONS =
77 ( process . env . NODE_OPTIONS ?? "" ) + ` --no-warnings=ExperimentalWarning` ;
88
9+ const isWindows = process . platform === "win32" ;
10+
911const 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
You can’t perform that action at this time.
0 commit comments