smoke: improve wait for welcome

This commit is contained in:
Joao Moreno 2018-04-12 14:46:25 +02:00
parent 5d369af230
commit ebc3719977

View file

@ -59,12 +59,10 @@ export class Application {
return this.options.workspaceFilePath;
}
async start(waitForWelcome: boolean = true): Promise<any> {
async start(): Promise<any> {
await this._start();
if (waitForWelcome) {
await this.waitForWelcome();
}
await this.code.waitForElement('.explorer-folders-view');
await this.code.waitForActiveElement(`.editor-container[id="workbench.editor.walkThroughPart"] > div > div[tabIndex="0"]`);
}
async restart(options: { workspaceOrFolder?: string, extraArgs?: string[] }): Promise<any> {
@ -124,11 +122,6 @@ export class Application {
await this.code.waitForElement('.monaco-workbench');
}
private async waitForWelcome(): Promise<any> {
await this.code.waitForElement('.explorer-folders-view');
await this.code.waitForElement(`.editor-container[id="workbench.editor.walkThroughPart"] .welcomePage`);
}
private retrieveKeybindings(): Promise<void> {
return new Promise((c, e) => {
fs.readFile(process.env.VSCODE_KEYBINDINGS_PATH as string, 'utf8', (err, data) => {