Smoke test: Fix terminal tests

This commit is contained in:
Sandeep Somavarapu
2017-09-07 17:27:24 +02:00
parent ee9d02467e
commit 550e32ea54
2 changed files with 9 additions and 9 deletions

View File

@@ -16,11 +16,9 @@ describe('Terminal', () => {
const expected = new Date().getTime().toString();
await app.workbench.terminal.showTerminal();
const currentLine = await app.workbench.terminal.getCurrentLineNumber();
await app.workbench.terminal.runCommand(`echo ${expected}`);
const resultLineNumber = await app.workbench.terminal.runCommand(`echo ${expected}`);
const actual = await app.workbench.terminal.waitForTextInLine(currentLine + 1, text => !!text.trim());
app.screenshot.capture('Terminal text');
const actual = await app.workbench.terminal.waitForTextInLine(resultLineNumber, text => text.trim() === expected);
assert.equal(actual.trim(), expected);
});
});