From 26d85e8ac7f7e2eb646ddf9c171e471e10ef8deb Mon Sep 17 00:00:00 2001 From: Michel Kaporin Date: Tue, 30 May 2017 16:55:32 +0200 Subject: [PATCH] Toggle full screen for reading out output console due to editor redrawing div elements. --- test/smoke/src/areas/tasks.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/smoke/src/areas/tasks.ts b/test/smoke/src/areas/tasks.ts index e0774854f3a..62eaaed9262 100644 --- a/test/smoke/src/areas/tasks.ts +++ b/test/smoke/src/areas/tasks.ts @@ -25,12 +25,14 @@ export class Tasks { } public async firstOutputLineEndsWith(fileName: string): Promise { + 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 { + public async getOutputResult(): Promise { + 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`); } -- GitLab