1- import { defineConfig , devices } from " @playwright/test" ;
2- import " dotenv/config" ;
1+ import { defineConfig , devices } from ' @playwright/test' ;
2+ import ' dotenv/config' ;
33
44/**
55 * Read environment variables from file.
66 * https://github.com/motdotla/dotenv
77 */
8- // require('dotenv').config();
8+ require ( 'dotenv' ) . config ( ) ;
99
1010/**
1111 * See https://playwright.dev/docs/test-configuration.
1212 */
1313export default defineConfig ( {
14- testDir : " ./tests" ,
14+ testDir : ' ./tests' ,
1515 /* Run tests in files in parallel */
1616 fullyParallel : true ,
1717 /* Fail the build on CI if you accidentally left test.only in the source code. */
@@ -21,31 +21,31 @@ export default defineConfig({
2121 /* Opt out of parallel tests on CI. */
2222 workers : process . env . CI ? 1 : undefined ,
2323 /* Reporter to use. See https://playwright.dev/docs/test-reporters */
24- reporter : " html" ,
24+ reporter : ' html' ,
2525 /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2626 use : {
2727 /* Base URL to use in actions like `await page.goto('/')`. */
2828 baseURL : process . env . APP_BASE_URL ,
2929 /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
30- trace : " on-first-retry" ,
30+ trace : ' on-first-retry' ,
3131 } ,
3232
3333 /* Configure projects for major browsers */
3434 projects : process . env . CI
3535 ? [
3636 {
37- name : " chromium" ,
38- use : { ...devices [ " Desktop Chrome" ] } ,
37+ name : ' chromium' ,
38+ use : { ...devices [ ' Desktop Chrome' ] } ,
3939 } ,
4040
4141 {
42- name : " firefox" ,
43- use : { ...devices [ " Desktop Firefox" ] } ,
42+ name : ' firefox' ,
43+ use : { ...devices [ ' Desktop Firefox' ] } ,
4444 } ,
4545
4646 {
47- name : " webkit" ,
48- use : { ...devices [ " Desktop Safari" ] } ,
47+ name : ' webkit' ,
48+ use : { ...devices [ ' Desktop Safari' ] } ,
4949 } ,
5050
5151 /* Test against mobile viewports. */
@@ -71,13 +71,13 @@ export default defineConfig({
7171 : [
7272 // NOTE: WebKit is only supported on Debian and Ubuntu in Playwright.
7373 {
74- name : " chromium" ,
75- use : { ...devices [ " Desktop Chrome" ] } ,
74+ name : ' chromium' ,
75+ use : { ...devices [ ' Desktop Chrome' ] } ,
7676 } ,
7777
7878 {
79- name : " firefox" ,
80- use : { ...devices [ " Desktop Firefox" ] } ,
79+ name : ' firefox' ,
80+ use : { ...devices [ ' Desktop Firefox' ] } ,
8181 } ,
8282 ] ,
8383
0 commit comments