Skip to content

Commit fc6fe8b

Browse files
committed
Add failing test
1 parent d3e2935 commit fc6fe8b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

packages/e2e-tests/test/e2e.spec.ts

+24
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)