Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
sestinj committed Jan 16, 2025
1 parent dc6ba67 commit 18824ef
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions extensions/vscode/e2e/tests/GUI.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 18824ef

Please sign in to comment.