@@ -34,8 +34,8 @@ describe('CodeceptJS plugin', function () {
3434
3535  it ( 'should failed before the retryTo instruction' ,  ( done )  =>  { 
3636    exec ( `${ config_run_config ( 'codecept.Playwright.retryTo.js' ,  'Should be succeed' ) }  ,  ( err ,  stdout )  =>  { 
37-       expect ( stdout ) . toContain ( 'locator.waitFor: Timeout 1000ms exceeded.' ) , 
38-       expect ( stdout ) . toContain ( '[1] Error | Error: element (.nothing) still not visible after 1 sec' ) , 
37+       expect ( stdout ) . toContain ( 'locator.waitFor: Timeout 1000ms exceeded.' ) ; 
38+       expect ( stdout ) . toContain ( '[1] Error | Error: element (.nothing) still not visible after 1 sec' ) ; 
3939      expect ( err ) . toBeTruthy ( ) ; 
4040      done ( ) ; 
4141    } ) ; 
@@ -72,15 +72,13 @@ describe('CodeceptJS plugin', function () {
7272  } ) ; 
7373
7474  it ( 'should retry to failure' ,  ( done )  =>  { 
75-     exec ( 
76-       `${ config_run_config ( 'codecept.Playwright.retryTo.js' ,  'Should fail after reached max retries' ) }  ,  ( err ,  stdout )  =>  { 
77-         const  lines  =  stdout . split ( '\n' ) ; 
78-         expect ( lines ) . toEqual ( 
79-           expect . arrayContaining ( [ expect . stringContaining ( 'Custom pluginRetryTo Error' ) ] ) 
80-         ) ; 
81-         expect ( err ) . toBeTruthy ( ) ; 
82-         done ( ) ; 
83-       } 
84-     ) ; 
75+     exec ( `${ config_run_config ( 'codecept.Playwright.retryTo.js' ,  'Should fail after reached max retries' ) }  ,  ( err ,  stdout )  =>  { 
76+       const  lines  =  stdout . split ( '\n' ) ; 
77+       expect ( lines ) . toEqual ( 
78+         expect . arrayContaining ( [ expect . stringContaining ( 'Custom pluginRetryTo Error' ) ] ) , 
79+       ) ; 
80+       expect ( err ) . toBeTruthy ( ) ; 
81+       done ( ) ; 
82+     } ) ; 
8583  } ) ; 
8684} ) ; 
0 commit comments