@@ -33,7 +33,8 @@ describe('CodeceptJS Timeouts', function () {
33
33
it ( 'should ignore timeouts if no timeout' , done => {
34
34
exec ( config_run_config ( 'codecept.conf.js' , 'no timeout test' ) , ( err , stdout ) => {
35
35
debug_this_test && console . log ( stdout )
36
- expect ( stdout ) . not . toContain ( 'Timeout' )
36
+ expect ( stdout ) . not . toContain ( 'TimeoutError' )
37
+ expect ( stdout ) . not . toContain ( 'was interrupted on' )
37
38
expect ( err ) . toBeFalsy ( )
38
39
done ( )
39
40
} )
@@ -52,7 +53,7 @@ describe('CodeceptJS Timeouts', function () {
52
53
it ( 'should prefer step timeout' , done => {
53
54
exec ( config_run_config ( 'codecept.conf.js' , 'timeout step' , true ) , ( err , stdout ) => {
54
55
debug_this_test && console . log ( stdout )
55
- expect ( stdout ) . toContain ( 'was interrupted on step timeout 200ms' )
56
+ expect ( stdout ) . toContain ( 'was interrupted on timeout 200ms' )
56
57
expect ( err ) . toBeTruthy ( )
57
58
done ( )
58
59
} )
@@ -61,7 +62,7 @@ describe('CodeceptJS Timeouts', function () {
61
62
it ( 'should keep timeout with steps' , done => {
62
63
exec ( config_run_config ( 'codecept.timeout.conf.js' , 'timeout step' , true ) , ( err , stdout ) => {
63
64
debug_this_test && console . log ( stdout )
64
- expect ( stdout ) . toContain ( 'was interrupted on step timeout 100ms' )
65
+ expect ( stdout ) . toContain ( 'was interrupted on timeout 100ms' )
65
66
expect ( err ) . toBeTruthy ( )
66
67
done ( )
67
68
} )
0 commit comments