1
- import { defineConfig , devices } from ' @playwright/test' ;
1
+ import { defineConfig , devices } from " @playwright/test" ;
2
2
3
3
/**
4
4
* @see https://playwright.dev/docs/test-configuration
5
5
*/
6
6
export default defineConfig ( {
7
- testDir : ' ./e2e' ,
7
+ testDir : " ./e2e" ,
8
8
/* Run tests in files in parallel */
9
9
fullyParallel : true ,
10
10
/* Fail the build on CI if you accidentally left test.only in the source code. */
@@ -14,43 +14,44 @@ export default defineConfig({
14
14
/* Opt out of parallel tests on CI. */
15
15
workers : process . env . CI ? 1 : undefined ,
16
16
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
17
- reporter : [
18
- [ 'html' , { outputFolder : 'playwright-report' } ] ,
19
- [ 'line' ]
20
- ] ,
17
+ reporter : [ [ "html" , { outputFolder : "playwright-report" } ] , [ "line" ] ] ,
21
18
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
22
19
use : {
23
20
/* Base URL to use in actions like `await page.goto('/')`. */
24
- baseURL : ' http://localhost:6274' ,
21
+ baseURL : " http://localhost:6274" ,
25
22
26
23
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
27
- trace : ' on-first-retry' ,
24
+ trace : " on-first-retry" ,
28
25
29
26
/* Take screenshots on failure */
30
- screenshot : 'on' ,
27
+ screenshot : "on" ,
31
28
// screenshot: 'only-on-failure',
32
29
33
30
/* Record video on failure */
34
- video : ' retain-on-failure' ,
31
+ video : " retain-on-failure" ,
35
32
} ,
36
33
37
34
/* Configure projects for major browsers */
38
35
projects : [
39
36
{
40
- name : ' chromium' ,
41
- use : { ...devices [ ' Desktop Chrome' ] } ,
37
+ name : " chromium" ,
38
+ use : { ...devices [ " Desktop Chrome" ] } ,
42
39
} ,
43
40
44
41
{
45
- name : ' firefox' ,
46
- use : { ...devices [ ' Desktop Firefox' ] } ,
42
+ name : " firefox" ,
43
+ use : { ...devices [ " Desktop Firefox" ] } ,
47
44
} ,
48
45
49
46
// Skip WebKit on macOS due to compatibility issues
50
- ...( process . platform !== 'darwin' ? [ {
51
- name : 'webkit' ,
52
- use : { ...devices [ 'Desktop Safari' ] } ,
53
- } ] : [ ] ) ,
47
+ ...( process . platform !== "darwin"
48
+ ? [
49
+ {
50
+ name : "webkit" ,
51
+ use : { ...devices [ "Desktop Safari" ] } ,
52
+ } ,
53
+ ]
54
+ : [ ] ) ,
54
55
55
56
/* Test against mobile viewports. */
56
57
// {
@@ -79,4 +80,4 @@ export default defineConfig({
79
80
// url: 'http://127.0.0.1:6274',
80
81
// reuseExistingServer: !process.env.CI,
81
82
// },
82
- } ) ;
83
+ } ) ;
0 commit comments