Skip to content

Commit 6c90366

Browse files
kobenguyentDavertMik
authored andcommitted
Feat/enter pressed is default for next in interactive shell (#1348)
* changed pressing ENTER to be default as next step in interactive shell * changed the text as requested
1 parent b3b55c4 commit 6c90366

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/pause.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@ const pause = function () {
3030
function 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() {
5152
function 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();

0 commit comments

Comments
 (0)