From 18824ef732cfc104414bd543ef4ea834ddf29412 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 16 Jan 2025 09:40:03 -0800 Subject: [PATCH] fix failing test --- extensions/vscode/e2e/tests/GUI.test.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/extensions/vscode/e2e/tests/GUI.test.ts b/extensions/vscode/e2e/tests/GUI.test.ts index df723d710..316db2d0e 100644 --- a/extensions/vscode/e2e/tests/GUI.test.ts +++ b/extensions/vscode/e2e/tests/GUI.test.ts @@ -222,16 +222,15 @@ describe("GUI Test", () => { const contextItemsPeek = await GUISelectors.getContextItemsPeek(view); await contextItemsPeek.click(); - let firstContextItemInPeek: WebElement; await TestUtils.waitForSuccess(async () => { - firstContextItemInPeek = + const firstContextItemInPeek = await GUISelectors.getFirstContextItemsPeekItem(view); await firstContextItemInPeek.click(); - }); - // Check that item is there with correct name - const description = await firstContextItemInPeek.getText(); - expect(description).to.include("Terminal"); + // Check that item is there with correct name + const description = await firstContextItemInPeek.getText(); + expect(description).to.include("Terminal"); + }); // Check that the contents match what we expect (repeated back by the mock LLM) await TestUtils.waitForSuccess(() => {