@@ -212,20 +212,20 @@ const selenoid = (config) => {
212
212
if ( autoStart ) {
213
213
event . dispatcher . on ( event . all . before , ( ) => {
214
214
recorder . add ( 'Starting selenoid' , ( ) => {
215
- output . output . debug ( 'Staring Selenoid... ' ) ;
215
+ output . debug ( 'Staring Selenoid... ' ) ;
216
216
return createAndStart ( autoCreate )
217
- . then ( ( ) => output . output . debug ( 'Selenoid started' ) )
217
+ . then ( ( ) => output . debug ( 'Selenoid started' ) )
218
218
. catch ( ( err ) => { throw new Error ( err . stack ) ; } ) ;
219
219
} ) ;
220
220
} ) ;
221
221
222
222
event . dispatcher . on ( event . all . after , ( ) => {
223
223
recorder . add ( 'Stopping selenoid' , ( ) => {
224
- output . output . debug ( 'Stopping Selenoid...' ) ;
224
+ output . debug ( 'Stopping Selenoid...' ) ;
225
225
return wait ( SELENOID_STOP_TIMEOUT )
226
226
. then ( ( ) => deletePassedTests ( passedTests ) )
227
227
. then ( stopSelenoid )
228
- . then ( ( ) => output . output . debug ( 'Selenoid stopped' ) )
228
+ . then ( ( ) => output . debug ( 'Selenoid stopped' ) )
229
229
. catch ( ( err ) => { throw new Error ( err . stack ) ; } ) ;
230
230
} ) ;
231
231
} ) ;
@@ -263,7 +263,7 @@ export default selenoid;
263
263
function videoSaved ( test ) {
264
264
const fileName = `${ clearString ( test . title ) } .mp4` ;
265
265
const videoFile = path . join ( global . output_dir , 'video' , fileName ) ;
266
- output . output . debug ( `Video has been saved to file://${ videoFile } ` ) ;
266
+ output . debug ( `Video has been saved to file://${ videoFile } ` ) ;
267
267
const allureReporter = container . plugins ( 'allure' ) ;
268
268
if ( allureReporter ) {
269
269
allureReporter . addAttachment ( 'Video' , fs . readFileSync ( videoFile ) , 'video/mp4' ) ;
@@ -305,21 +305,21 @@ const pullImage = async () => {
305
305
306
306
console . time ( 'Pulled containers' ) ;
307
307
if ( ! stdout . includes ( 'selenoid/video-recorder' ) ) {
308
- output . output . debug ( 'Pulling selenoid/video-recorder...' ) ;
308
+ output . debug ( 'Pulling selenoid/video-recorder...' ) ;
309
309
resultPromise = exec ( 'docker pull selenoid/video-recorder:latest-release' )
310
- . then ( ( ) => output . output . debug ( 'Pulled in selenoid/video-recorder' ) ) ;
310
+ . then ( ( ) => output . debug ( 'Pulled in selenoid/video-recorder' ) ) ;
311
311
pulls . push ( resultPromise ) ;
312
312
}
313
313
if ( ! stdout . includes ( 'selenoid/chrome' ) ) {
314
- output . output . debug ( 'Pulling selenoid/chrome...' ) ;
314
+ output . debug ( 'Pulling selenoid/chrome...' ) ;
315
315
resultPromise = exec ( 'docker pull selenoid/chrome:latest' )
316
- . then ( ( ) => output . output . debug ( 'Pulled in selenoid/video-recorder' ) ) ;
316
+ . then ( ( ) => output . debug ( 'Pulled in selenoid/video-recorder' ) ) ;
317
317
pulls . push ( resultPromise ) ;
318
318
}
319
319
if ( ! stdout . includes ( 'selenoid/firefox' ) ) {
320
- output . output . debug ( 'Pulling selenoid/firefox...' ) ;
320
+ output . debug ( 'Pulling selenoid/firefox...' ) ;
321
321
resultPromise = exec ( 'docker pull selenoid/firefox:latest' )
322
- . then ( ( ) => output . output . debug ( 'Pulled in selenoid/chrome' ) ) ;
322
+ . then ( ( ) => output . debug ( 'Pulled in selenoid/chrome' ) ) ;
323
323
pulls . push ( resultPromise ) ;
324
324
}
325
325
@@ -338,7 +338,7 @@ function deletePassedTests(passedTests) {
338
338
const deleteLogPromiseList = passedTests . map ( clearString ) . map ( test => axios . delete ( `${ seleniumUrl } /logs/${ test } .log` ) ) ;
339
339
340
340
return Promise . all ( deleteVideoPromiseList . concat ( deleteLogPromiseList ) )
341
- . then ( ( ) => output . output . debug ( 'Deleted videos and logs for all passed tests' ) )
341
+ . then ( ( ) => output . debug ( 'Deleted videos and logs for all passed tests' ) )
342
342
. catch ( err => output . output . error ( `Error while deleting video and log files ${ err . stack } ` ) ) ;
343
343
}
344
344
0 commit comments