@@ -12,15 +12,6 @@ const { defineConfig, devices } = require('@playwright/test');
12
12
*/
13
13
module . exports = defineConfig ( {
14
14
testDir : './{{testDir}}' ,
15
- /* Maximum time one test can run for. */
16
- timeout : 30 * 1000 ,
17
- expect : {
18
- /**
19
- * Maximum time expect() should wait for the condition to be met.
20
- * For example in `await expect(locator).toHaveText();`
21
- */
22
- timeout : 5000
23
- } ,
24
15
/* Run tests in files in parallel */
25
16
fullyParallel : true ,
26
17
/* Fail the build on CI if you accidentally left test.only in the source code. */
@@ -33,10 +24,8 @@ module.exports = defineConfig({
33
24
reporter : 'html' ,
34
25
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
35
26
use : {
36
- /* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
37
- actionTimeout : 0 ,
38
27
/* Base URL to use in actions like `await page.goto('/')`. */
39
- // baseURL: 'http://localhost :3000',
28
+ // baseURL: 'http://127.0.0.1 :3000',
40
29
41
30
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
42
31
trace : 'on-first-retry' ,
@@ -78,21 +67,19 @@ module.exports = defineConfig({
78
67
/* Test against branded browsers. */
79
68
// {
80
69
// name: 'Microsoft Edge',
81
- // use: { channel: 'msedge' },
70
+ // use: { ...devices['Desktop Edge'], channel: 'msedge' },
82
71
// },
83
72
// {
84
73
// name: 'Google Chrome',
85
- // use: { channel: 'chrome' },
74
+ // use: { ..devices['Desktop Chrome'], channel: 'chrome' },
86
75
// },
87
76
] ,
88
77
89
- /* Folder for test artifacts such as screenshots, videos, traces, etc. */
90
- // outputDir: 'test-results/',
91
-
92
78
/* Run your local dev server before starting the tests */
93
79
// webServer: {
94
80
// command: 'npm run start',
95
- // port: 3000,
81
+ // url: 'http://127.0.0.1:3000',
82
+ // reuseExistingServer: !process.env.CI,
96
83
// },
97
84
} ) ;
98
85
0 commit comments