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

Commit

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

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

Expand Down

0 comments on commit 825a04d

Please sign in to comment.