mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
Toggle full screen for reading out output console due to editor redrawing div elements.
This commit is contained in:
parent
7a7965a93e
commit
26d85e8ac7
|
@ -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`);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue