smoke: improve wait for welcome
This commit is contained in:
parent
5d369af230
commit
ebc3719977
1 changed files with 3 additions and 10 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue