@@ -58,57 +58,13 @@ const config: PlaywrightTestConfig = {
5858 userAgent : devices [ 'Desktop Chrome' ] . userAgent + ' (Playwright Test)' ,
5959 }
6060 }
61-
62- // {
63- // name: 'firefox',
64- // use: {
65- // ...devices['Desktop Firefox'],
66- // },
67- // },
68-
69- // {
70- // name: 'webkit',
71- // use: {
72- // ...devices['Desktop Safari'],
73- // },
74- // },
75-
76- /* Test against mobile viewports. */
77- // {
78- // name: 'Mobile Chrome',
79- // use: {
80- // ...devices['Pixel 5'],
81- // },
82- // },
83- // {
84- // name: 'Mobile Safari',
85- // use: {
86- // ...devices['iPhone 12'],
87- // },
88- // },
89-
90- /* Test against branded browsers. */
91- // {
92- // name: 'Microsoft Edge',
93- // use: {
94- // channel: 'msedge',
95- // },
96- // },
97- // {
98- // name: 'Google Chrome',
99- // use: {
100- // channel: 'chrome',
101- // },
102- // },
10361 ] ,
10462
105- /* Folder for test artifacts such as screenshots, videos, traces, etc. */
106- // outputDir: 'test-results/',
107-
10863 /* Run your local dev server before starting the tests */
10964 webServer : {
110- command : 'npm run build && npm run preview' ,
111- port : 4173 ,
65+ command : process . env . CI ? 'npm run build && npm run preview' : 'npm run dev' ,
66+ port : process . env . CI ? 4173 : 5173 ,
67+ reuseExistingServer : ! process . env . CI ,
11268 timeout : 600_000 , // 10 minutes
11369 } ,
11470}
0 commit comments