1
- import { defineConfig , devices } from ' @playwright/test' ;
2
- import dotenv from ' dotenv' ;
1
+ import { defineConfig , devices } from " @playwright/test" ;
2
+ import dotenv from " dotenv" ;
3
3
4
4
/**
5
5
* Read environment variables from file.
6
6
* https://github.com/motdotla/dotenv
7
7
*/
8
8
dotenv . config ( ) ;
9
9
10
-
11
10
/**
12
11
* See https://playwright.dev/docs/test-configuration.
13
12
*/
14
13
export default defineConfig ( {
15
14
testDir : "./e2e" ,
16
15
testMatch : "**/*.spec.ts" ,
17
- timeout : 90000 * 1000 ,
16
+ timeout : 180 * 1000 ,
18
17
/* Run tests in files in parallel */
19
- fullyParallel : true ,
18
+ fullyParallel : false ,
20
19
/* Fail the build on CI if you accidentally left test.only in the source code. */
21
20
forbidOnly : Boolean ( process . env . CI ) ,
22
21
/* Retry on CI only */
@@ -40,42 +39,5 @@ export default defineConfig({
40
39
name : "chromium" ,
41
40
use : { ...devices [ "Desktop Chrome" ] } ,
42
41
} ,
43
-
44
- // {
45
- // name: 'firefox',
46
- // use: { ...devices['Desktop Firefox'] },
47
- // },
48
-
49
- // {
50
- // name: 'webkit',
51
- // use: { ...devices['Desktop Safari'] },
52
- // },
53
-
54
- /* Test against mobile viewports. */
55
- // {
56
- // name: 'Mobile Chrome',
57
- // use: { ...devices['Pixel 5'] },
58
- // },
59
- // {
60
- // name: 'Mobile Safari',
61
- // use: { ...devices['iPhone 12'] },
62
- // },
63
-
64
- /* Test against branded browsers. */
65
- // {
66
- // name: 'Microsoft Edge',
67
- // use: { ...devices['Desktop Edge'], channel: 'msedge' },
68
- // },
69
- // {
70
- // name: 'Google Chrome',
71
- // use: { ...devices['Desktop Chrome'], channel: 'chrome' },
72
- // },
73
42
] ,
74
-
75
- /* Run your local dev server before starting the tests */
76
- // webServer: {
77
- // command: 'npm run start',
78
- // url: 'http://127.0.0.1:3000',
79
- // reuseExistingServer: !process.env.CI,
80
- // },
81
43
} ) ;
0 commit comments