File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change 1
1
import fs from 'fs' ;
2
2
import http from 'http' ;
3
3
import * as ports from 'port-authority' ;
4
- import { test as base , devices } from '@playwright/test' ;
4
+ import { test as base } from '@playwright/test' ;
5
5
6
6
export const test = base . extend ( {
7
7
// @ts -expect-error
@@ -136,13 +136,6 @@ export const test = base.extend({
136
136
}
137
137
} ) ;
138
138
139
- const useDesktopChrome = {
140
- browserName : 'chromium' ,
141
- // use stable chrome from host OS instead of downloading one
142
- // see https://playwright.dev/docs/browsers#google-chrome--microsoft-edge
143
- channel : 'chrome'
144
- } ;
145
-
146
139
/** @type {import('@playwright/test').PlaywrightTestConfig } */
147
140
export const config = {
148
141
forbidOnly : ! ! process . env . CI ,
@@ -157,14 +150,12 @@ export const config = {
157
150
{
158
151
name : `${ process . env . DEV ? 'dev' : 'build' } +js_chrome` ,
159
152
use : {
160
- use : useDesktopChrome ,
161
153
javaScriptEnabled : true
162
154
}
163
155
} ,
164
156
{
165
157
name : `${ process . env . DEV ? 'dev' : 'build' } -js_chrome` ,
166
158
use : {
167
- use : useDesktopChrome ,
168
159
javaScriptEnabled : false
169
160
}
170
161
} ,
@@ -185,6 +176,9 @@ export const config = {
185
176
] ,
186
177
use : {
187
178
screenshot : 'only-on-failure' ,
179
+ // use stable chrome from host OS instead of downloading one
180
+ // see https://playwright.dev/docs/browsers#google-chrome--microsoft-edge
181
+ channel : 'chrome' ,
188
182
trace : 'retain-on-failure'
189
183
} ,
190
184
workers : process . env . CI ? 2 : undefined
You can’t perform that action at this time.
0 commit comments