From 38e7a68c16b72bc2eb40697edd0e732236582397 Mon Sep 17 00:00:00 2001 From: kieferrm Date: Wed, 2 Jan 2019 13:31:14 -0800 Subject: [PATCH] fix smoke test --- test/smoke/src/areas/extensions/extensions.test.ts | 2 +- test/smoke/src/areas/extensions/extensions.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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);