From 66660ee1cd5cf65915a2183f13aa5eeed4238c49 Mon Sep 17 00:00:00 2001 From: Max Kless Date: Wed, 28 Sep 2022 17:38:31 +0200 Subject: [PATCH] fix: wait for nx console viewcontrol --- apps/vscode-e2e/specs/utils.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/vscode-e2e/specs/utils.ts b/apps/vscode-e2e/specs/utils.ts index 992c7b275f..320d081158 100644 --- a/apps/vscode-e2e/specs/utils.ts +++ b/apps/vscode-e2e/specs/utils.ts @@ -43,6 +43,9 @@ export function getTestWorkspacePath() { export async function openNxConsoleViewContainer() { const workbench = await browser.getWorkbench(); await workbench.wait(); + await browser.waitUntil(async () => { + return await !!workbench.getActivityBar().getViewControl('Nx Console'); + }); const nxActivityBaritem = await workbench .getActivityBar() .getViewControl('Nx Console');