1
- import { defineConfig , devices } from ' @playwright/test' ;
1
+ import { defineConfig , devices } from " @playwright/test" ;
2
2
3
3
/**
4
4
* Read environment variables from file.
@@ -10,7 +10,7 @@ import { defineConfig, devices } from '@playwright/test';
10
10
* See https://playwright.dev/docs/test-configuration.
11
11
*/
12
12
export default defineConfig ( {
13
- testDir : ' ./tests' ,
13
+ testDir : " ./tests" ,
14
14
/* Run tests in files in parallel */
15
15
fullyParallel : true ,
16
16
/* Fail the build on CI if you accidentally left test.only in the source code. */
@@ -20,31 +20,31 @@ export default defineConfig({
20
20
/* Opt out of parallel tests on CI. */
21
21
workers : process . env . CI ? 1 : undefined ,
22
22
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
23
- reporter : ' html' ,
23
+ reporter : " html" ,
24
24
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
25
25
use : {
26
26
/* Base URL to use in actions like `await page.goto('/')`. */
27
27
// baseURL: 'http://127.0.0.1:3000',
28
28
29
29
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
30
- trace : ' on-first-retry' ,
30
+ trace : " on-first-retry" ,
31
31
} ,
32
32
33
33
/* Configure projects for major browsers */
34
34
projects : [
35
35
{
36
- name : ' chromium' ,
37
- use : { ...devices [ ' Desktop Chrome' ] } ,
36
+ name : " chromium" ,
37
+ use : { ...devices [ " Desktop Chrome" ] } ,
38
38
} ,
39
39
40
40
{
41
- name : ' firefox' ,
42
- use : { ...devices [ ' Desktop Firefox' ] } ,
41
+ name : " firefox" ,
42
+ use : { ...devices [ " Desktop Firefox" ] } ,
43
43
} ,
44
44
45
45
{
46
- name : ' webkit' ,
47
- use : { ...devices [ ' Desktop Safari' ] } ,
46
+ name : " webkit" ,
47
+ use : { ...devices [ " Desktop Safari" ] } ,
48
48
} ,
49
49
50
50
/* Test against mobile viewports. */
@@ -75,16 +75,10 @@ export default defineConfig({
75
75
// reuseExistingServer: !process.env.CI,
76
76
// },
77
77
78
-
79
- /* Run your local dev server before starting the tests */
80
- webServer : {
81
- reuseExistingServer : true ,
82
- command : 'npm run dev' ,
83
- port : 3000 ,
84
- } ,
85
-
86
-
87
-
88
-
89
-
78
+ /* Run your local dev server before starting the tests */
79
+ webServer : {
80
+ reuseExistingServer : true ,
81
+ command : "npm run dev" ,
82
+ port : 3000 ,
83
+ } ,
90
84
} ) ;
0 commit comments