diff --git a/test/automation/src/application.ts b/test/automation/src/application.ts index 8f573355e44..231fc9d3ffa 100644 --- a/test/automation/src/application.ts +++ b/test/automation/src/application.ts @@ -72,6 +72,11 @@ export class Application { await this._start(); await this.code.waitForElement('.explorer-folders-view'); + if (!this.options.web) { + // Dismiss workspace trust dialog + await this.code.waitAndClick(`.monaco-workbench .dialog-buttons-row a:nth-child(1)`, 10, 10); + } + // https://github.com/microsoft/vscode/issues/118748 // if (expectWalkthroughPart) { // await this.code.waitForElement(`.editor-instance > div > div.welcomePageFocusElement[tabIndex="0"]`); @@ -82,6 +87,12 @@ export class Application { await this.stop(); await new Promise(c => setTimeout(c, 1000)); await this._start(options.workspaceOrFolder, options.extraArgs); + await this.code.waitForElement('.explorer-folders-view'); + + if (!this.options.web) { + // Dismiss workspace trust dialog + await this.code.waitAndClick(`.monaco-workbench .dialog-buttons-row a:nth-child(1)`, 10, 10); + } } private async _start(workspaceOrFolder = this.workspacePathOrFolder, extraArgs: string[] = []): Promise {