diff --git a/test/smoke/src/areas/extensions/extensions.test.ts b/test/smoke/src/areas/extensions/extensions.test.ts index 6a9033d3fdb..6fd6a61e598 100644 --- a/test/smoke/src/areas/extensions/extensions.test.ts +++ b/test/smoke/src/areas/extensions/extensions.test.ts @@ -21,7 +21,7 @@ export function setup() { await app.workbench.extensions.installExtension(extensionName); await app.reload(); - await app.workbench.extensions.openExtensionsViewlet(); + await app.workbench.extensions.waitForExtensionsViewlet(); await app.workbench.quickopen.runCommand('Smoke Test Check'); await app.workbench.statusbar.waitForStatusbarText('smoke test', 'VS Code Smoke Test Check'); }); diff --git a/test/smoke/src/areas/extensions/extensions.ts b/test/smoke/src/areas/extensions/extensions.ts index 632077c2bdd..bf9748c466e 100644 --- a/test/smoke/src/areas/extensions/extensions.ts +++ b/test/smoke/src/areas/extensions/extensions.ts @@ -24,6 +24,10 @@ export class Extensions extends Viewlet { await this.code.waitForActiveElement(SEARCH_BOX); } + async waitForExtensionsViewlet(): Promise { + await this.code.waitForElement(SEARCH_BOX); + } + async searchForExtension(name: string): Promise { await this.code.waitAndClick(SEARCH_BOX); await this.code.waitForActiveElement(SEARCH_BOX);