File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -571,6 +571,30 @@ describe('e2e', function () {
571571 shell . assertNoErrors ( ) ;
572572 } ) ;
573573
574+ it ( 'prints only multiline dots between prompts' , async function ( ) {
575+ await shell . waitForPrompt ( ) ;
576+ const outputOffsetBefore = shell . output . length ;
577+ shell . writeInputLine ( `
578+ const foo = {
579+ bar: "baz"
580+ };
581+ ` ) ;
582+
583+ // Wait for some multiline dots
584+ await shell . eventually ( ( ) => {
585+ shell . assertContainsOutput ( '... ...' ) ;
586+ } ) ;
587+ const outputOffsetAfterDots = shell . output . length ;
588+ const outputBetween = shell . output
589+ . substring ( outputOffsetBefore , outputOffsetAfterDots )
590+ . trim ( ) ;
591+ // Expect just the multiline dots
592+ expect ( outputBetween ) . equals ( '... ...' ) ;
593+
594+ // Waiting for a new prompt
595+ await shell . waitForPrompt ( outputOffsetAfterDots ) ;
596+ } ) ;
597+
574598 it ( 'runs help command' , async function ( ) {
575599 expect ( await shell . executeLine ( 'help' ) ) . to . include ( 'Shell Help' ) ;
576600 shell . assertNoErrors ( ) ;
You can’t perform that action at this time.
0 commit comments