diff --git a/test/smoke/src/areas/tasks.ts b/test/smoke/src/areas/tasks.ts index e0774854f3ad24a63f32dbe72a0735e6ed22667b..62eaaed92622a1cc08ec80bfb2125a1b2e5020e5 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`); }