提交 21700be5 编写于 作者: J Johannes Rieken

disable terminal smoke test

上级 88bbbe4f
...@@ -3,24 +3,24 @@ ...@@ -3,24 +3,24 @@
* Licensed under the MIT License. See License.txt in the project root for license information. * Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/ *--------------------------------------------------------------------------------------------*/
import { Application } from '../../application'; // import { Application } from '../../application';
export function setup() { export function setup() {
describe('Terminal', () => { describe('Terminal', () => {
it(`opens terminal, runs 'echo' and verifies the output`, async function () { // it(`opens terminal, runs 'echo' and verifies the output`, async function () {
const app = this.app as Application; // const app = this.app as Application;
const expected = new Date().getTime().toString(); // const expected = new Date().getTime().toString();
await app.workbench.terminal.showTerminal(); // await app.workbench.terminal.showTerminal();
await app.workbench.terminal.runCommand(`echo ${expected}`); // await app.workbench.terminal.runCommand(`echo ${expected}`);
await app.workbench.terminal.waitForTerminalText(terminalText => { // await app.workbench.terminal.waitForTerminalText(terminalText => {
for (let index = terminalText.length - 2; index >= 0; index--) { // for (let index = terminalText.length - 2; index >= 0; index--) {
if (!!terminalText[index] && terminalText[index].trim() === expected) { // if (!!terminalText[index] && terminalText[index].trim() === expected) {
return true; // return true;
} // }
} // }
return false; // return false;
}); // });
}); // });
}); });
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册