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.
5
5
* https://github.com/motdotla/dotenv
6
6
*/
7
7
// require('dotenv').config();
8
8
9
- const BASE_URL = process . env . BASE_URL ?? ' http://nginx:8080' ;
9
+ const BASE_URL = process . env . BASE_URL ?? " http://nginx:8080" ;
10
10
11
11
/**
12
12
* See https://playwright.dev/docs/test-configuration.
13
13
*/
14
14
export default defineConfig ( {
15
- testDir : ' ./assets/tests' ,
15
+ testDir : " ./assets/tests" ,
16
16
/* Run tests in files in parallel */
17
17
fullyParallel : true ,
18
18
/* Fail the build on CI if you accidentally left test.only in the source code. */
@@ -23,25 +23,25 @@ export default defineConfig({
23
23
workers : process . env . CI ? 1 : undefined ,
24
24
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
25
25
// Open never added to avoid the CI pipeline to get stuck in a html-reporter-mode.
26
- reporter : [ [ ' html' , { open : ' never' } ] ] ,
26
+ reporter : [ [ " html" , { open : " never" } ] ] ,
27
27
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
28
28
use : {
29
29
/* Base URL to use in actions like `await page.goto('/')`. */
30
30
// Docker baseurl
31
31
baseURL : BASE_URL ,
32
32
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
33
- trace : ' on-first-retry' ,
34
-
35
- screenshot : ' only-on-failure'
33
+ trace : " on-first-retry" ,
34
+ video : "retain-on-failure" ,
35
+ screenshot : " only-on-failure" ,
36
36
} ,
37
37
38
38
/* Configure projects for major browsers */
39
39
projects : [
40
40
{
41
- name : ' chromium' ,
42
- use : { ...devices [ ' Desktop Chrome' ] } ,
41
+ name : " chromium" ,
42
+ use : { ...devices [ " Desktop Chrome" ] } ,
43
43
} ,
44
- /*
44
+ /*
45
45
{
46
46
name: 'firefox',
47
47
use: { ...devices['Desktop Firefox'] },
0 commit comments