Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

Commit

Permalink
Fix terminal UAT after codemirror change
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Trott committed May 22, 2018
1 parent 1f761bc commit f3fa168
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/tests/output/terminal.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,12 @@ describe('output-terminal-test-suite', () => {
});

test('executes command in terminal', async () => {
await output.setNewOutputCursor();
await output.clearOutput();
// if (debug) await debug();
await terminal.executeCommand('use test;');
await browser.pause(100);
const outputLines = (await output.getNewOutputLines()).replace(/\r?\n|\r/g, '');
const expectedOutput = expect.stringMatching(
'use test;switched to db testdbKoda Mongo Shell>'
);
const outputLines = (await output.getAllOutputLines()).replace(/\r?\n|\r/g, '');
const expectedOutput = expect.stringMatching('switched to db testdbKoda Mongo Shell>');
expect(outputLines).toEqual(expectedOutput);
});

Expand Down

0 comments on commit f3fa168

Please sign in to comment.