1- import { defineConfig , devices } from ' @playwright/test' ;
1+ import { defineConfig , devices } from " @playwright/test" ;
22
33/**
44 * Read environment variables from file.
@@ -12,68 +12,27 @@ import { defineConfig, devices } from '@playwright/test';
1212 * See https://playwright.dev/docs/test-configuration.
1313 */
1414export default defineConfig ( {
15- testDir : ' tests' ,
15+ testDir : " 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. */
1919 forbidOnly : ! ! process . env . CI ,
2020 /* Retry on CI only */
2121 retries : process . env . CI ? 2 : 0 ,
22- /* Opt out of parallel tests on CI. */
2322 workers : process . env . CI ? 1 : undefined ,
2423 /* Reporter to use. See https://playwright.dev/docs/test-reporters */
25- reporter : ' list' ,
24+ reporter : [ [ "html" , { open : "never" } ] , [ " list" ] ] ,
2625 /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2726 use : {
28- /* Base URL to use in actions like `await page.goto('/')`. */
29- // baseURL: 'http://127.0.0.1:3000',
30-
3127 /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
32- trace : ' on-first-retry' ,
28+ trace : " on-first-retry" ,
3329 } ,
3430
3531 /* Configure projects for major browsers */
3632 projects : [
3733 {
38- name : ' chromium' ,
39- use : { ...devices [ ' Desktop Chrome' ] } ,
34+ name : " chromium" ,
35+ use : { ...devices [ " Desktop Chrome" ] } ,
4036 } ,
41-
42- // {
43- // name: 'firefox',
44- // use: { ...devices['Desktop Firefox'] },
45- // },
46-
47- // {
48- // name: 'webkit',
49- // use: { ...devices['Desktop Safari'] },
50- // },
51-
52- /* Test against mobile viewports. */
53- // {
54- // name: 'Mobile Chrome',
55- // use: { ...devices['Pixel 5'] },
56- // },
57- // {
58- // name: 'Mobile Safari',
59- // use: { ...devices['iPhone 12'] },
60- // },
61-
62- /* Test against branded browsers. */
63- // {
64- // name: 'Microsoft Edge',
65- // use: { ...devices['Desktop Edge'], channel: 'msedge' },
66- // },
67- // {
68- // name: 'Google Chrome',
69- // use: { ...devices['Desktop Chrome'], channel: 'chrome' },
70- // },
7137 ] ,
72-
73- /* Run your local dev server before starting the tests */
74- // webServer: {
75- // command: 'npm run start',
76- // url: 'http://127.0.0.1:3000',
77- // reuseExistingServer: !process.env.CI,
78- // },
7938} ) ;
0 commit comments