File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,12 @@ const pause = function () {
3030function pauseSession ( ) {
3131 recorder . session . start ( 'pause' ) ;
3232 output . print ( colors . yellow ( ' Interactive shell started' ) ) ;
33- output . print ( colors . yellow ( ` Press ${ colors . bold ( 'ENTER' ) } to resume test` ) ) ;
33+ output . print ( colors . yellow ( ` Press ${ colors . bold ( 'ENTER' ) } to run the next step` ) ) ;
34+ output . print ( colors . yellow ( ` Enter ${ colors . bold ( 'exit' ) } to exit the interactive shell and resume the test` ) ) ;
3435 if ( ! next ) {
3536 output . print ( colors . yellow ( ' - Use JavaScript syntax to try steps in action' ) ) ;
3637 output . print ( colors . yellow ( ` - Press ${ colors . bold ( 'TAB' ) } twice to see all available commands` ) ) ;
37- output . print ( colors . yellow ( ` - Enter ${ colors . bold ( 'next ' ) } to run the next step` ) ) ;
38+ output . print ( colors . yellow ( ` - Press ${ colors . bold ( 'ENTER ' ) } to run the next step` ) ) ;
3839 }
3940 rl = readline . createInterface ( process . stdin , process . stdout , completer ) ;
4041
@@ -51,8 +52,8 @@ function pauseSession() {
5152function parseInput ( cmd ) {
5253 rl . pause ( ) ;
5354 next = false ;
54- if ( cmd === 'next ' ) next = true ;
55- if ( ! cmd || cmd === 'next ' ) {
55+ if ( cmd === '' ) next = true ;
56+ if ( ! cmd || cmd === 'resume ' ) {
5657 finish ( ) ;
5758 recorder . session . restore ( ) ;
5859 rl . close ( ) ;
You can’t perform that action at this time.
0 commit comments