@@ -34,8 +34,8 @@ describe('CodeceptJS plugin', function () {
34
34
35
35
it ( 'should failed before the retryTo instruction' , ( done ) => {
36
36
exec ( `${ config_run_config ( 'codecept.Playwright.retryTo.js' , 'Should be succeed' ) } --verbose` , ( 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' ) ;
39
39
expect ( err ) . toBeTruthy ( ) ;
40
40
done ( ) ;
41
41
} ) ;
@@ -72,15 +72,13 @@ describe('CodeceptJS plugin', function () {
72
72
} ) ;
73
73
74
74
it ( 'should retry to failure' , ( done ) => {
75
- exec (
76
- `${ config_run_config ( 'codecept.Playwright.retryTo.js' , 'Should fail after reached max retries' ) } --verbose` , ( 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' ) } --verbose` , ( 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
+ } ) ;
85
83
} ) ;
86
84
} ) ;
0 commit comments