1- import { defineConfig , devices } from ' @playwright/test' ;
1+ import { defineConfig , devices } from " @playwright/test" ;
22
33/**
44 * Read environment variables from file.
55 * https://github.com/motdotla/dotenv
66 */
77// require('dotenv').config();
88
9- const BASE_URL = process . env . BASE_URL ?? ' http://nginx:8080' ;
9+ const BASE_URL = process . env . BASE_URL ?? " http://nginx:8080" ;
1010
1111/**
1212 * See https://playwright.dev/docs/test-configuration.
1313 */
1414export default defineConfig ( {
15- testDir : ' ./assets/tests' ,
15+ testDir : " ./assets/tests" ,
1616 /* Run tests in files in parallel */
1717 fullyParallel : true ,
1818 /* Fail the build on CI if you accidentally left test.only in the source code. */
@@ -23,25 +23,25 @@ export default defineConfig({
2323 workers : process . env . CI ? 1 : undefined ,
2424 /* Reporter to use. See https://playwright.dev/docs/test-reporters */
2525 // 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" } ] ] ,
2727 /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2828 use : {
2929 /* Base URL to use in actions like `await page.goto('/')`. */
3030 // Docker baseurl
3131 baseURL : BASE_URL ,
3232 /* 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" ,
3636 } ,
3737
3838 /* Configure projects for major browsers */
3939 projects : [
4040 {
41- name : ' chromium' ,
42- use : { ...devices [ ' Desktop Chrome' ] } ,
41+ name : " chromium" ,
42+ use : { ...devices [ " Desktop Chrome" ] } ,
4343 } ,
44- /*
44+ /*
4545 {
4646 name: 'firefox',
4747 use: { ...devices['Desktop Firefox'] },
0 commit comments