提交 26d85e8a 编写于 作者: M Michel Kaporin

Toggle full screen for reading out output console due to editor redrawing div elements.

上级 7a7965a9
......@@ -25,12 +25,14 @@ export class Tasks {
}
public async firstOutputLineEndsWith(fileName: string): Promise<boolean> {
await this.spectron.command('workbench.action.toggleFullScreen'); // toggle full screen to prevent output view to be rendered as wrapped
const firstLine = await this.spectron.waitFor(this.spectron.client.getText, `${this.outputViewSelector}>:nth-child(2)`);
return firstLine.endsWith(fileName);
}
public getOutputResult(): Promise<any> {
public async getOutputResult(): Promise<any> {
await this.spectron.command('workbench.action.toggleFullScreen'); // toggle full screen to prevent output view to be rendered as wrapped
return this.spectron.waitFor(this.spectron.client.getText, `${this.outputViewSelector}>:nth-child(5) span.mtk1`);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册