@@ -81,21 +81,6 @@ describe('Playwright', function() {
81
81
} ) ;
82
82
} ) ;
83
83
84
- describe ( 'browserType.launchServer' , function ( ) {
85
- it ( 'should return child_process instance' , async ( { browserType, defaultBrowserOptions} ) => {
86
- const browserServer = await browserType . launchServer ( defaultBrowserOptions ) ;
87
- expect ( browserServer . process ( ) . pid ) . toBeGreaterThan ( 0 ) ;
88
- await browserServer . close ( ) ;
89
- } ) ;
90
- it ( 'should fire close event' , async ( { browserType, defaultBrowserOptions} ) => {
91
- const browserServer = await browserType . launchServer ( defaultBrowserOptions ) ;
92
- await Promise . all ( [
93
- new Promise ( f => browserServer . on ( 'close' , f ) ) ,
94
- browserServer . close ( ) ,
95
- ] ) ;
96
- } ) ;
97
- } ) ;
98
-
99
84
describe ( 'browserType.executablePath' , function ( ) {
100
85
it ( 'should work' , async ( { browserType} ) => {
101
86
const executablePath = browserType . executablePath ( ) ;
@@ -281,6 +266,18 @@ describe('browserType.launchServer', function() {
281
266
] ) ;
282
267
expect ( order ) . toEqual ( [ 'closed' , 'killed' ] ) ;
283
268
} ) ;
269
+ it ( 'should return child_process instance' , async ( { browserType, defaultBrowserOptions} ) => {
270
+ const browserServer = await browserType . launchServer ( defaultBrowserOptions ) ;
271
+ expect ( browserServer . process ( ) . pid ) . toBeGreaterThan ( 0 ) ;
272
+ await browserServer . close ( ) ;
273
+ } ) ;
274
+ it ( 'should fire close event' , async ( { browserType, defaultBrowserOptions} ) => {
275
+ const browserServer = await browserType . launchServer ( defaultBrowserOptions ) ;
276
+ await Promise . all ( [
277
+ new Promise ( f => browserServer . on ( 'close' , f ) ) ,
278
+ browserServer . close ( ) ,
279
+ ] ) ;
280
+ } ) ;
284
281
} ) ;
285
282
286
283
describe ( 'browserType.connect' , function ( ) {
0 commit comments