diff --git a/extensions/vscode/e2e/TestUtils.ts b/extensions/vscode/e2e/TestUtils.ts index dc1fd556e..47651d926 100644 --- a/extensions/vscode/e2e/TestUtils.ts +++ b/extensions/vscode/e2e/TestUtils.ts @@ -3,7 +3,7 @@ import { WebElement } from "vscode-extension-tester"; export class TestUtils { public static async waitForElement( locatorFn: () => Promise, - timeout: number = 1500, + timeout: number = 5000, interval: number = 500, ): Promise { const startTime = Date.now(); diff --git a/extensions/vscode/e2e/actions/GUI.actions.ts b/extensions/vscode/e2e/actions/GUI.actions.ts index 1e59f1d15..86fcb293b 100644 --- a/extensions/vscode/e2e/actions/GUI.actions.ts +++ b/extensions/vscode/e2e/actions/GUI.actions.ts @@ -5,6 +5,7 @@ import { Workbench, } from "vscode-extension-tester"; import { GUISelectors } from "../selectors/GUI.selectors"; +import { TestUtils } from "../TestUtils"; export class GUIActions { public static switchToReactIframe = async (driver: WebDriver) => { diff --git a/extensions/vscode/e2e/selectors/GUI.selectors.ts b/extensions/vscode/e2e/selectors/GUI.selectors.ts index 1208d1a04..b4c88aacb 100644 --- a/extensions/vscode/e2e/selectors/GUI.selectors.ts +++ b/extensions/vscode/e2e/selectors/GUI.selectors.ts @@ -26,10 +26,6 @@ export class GUISelectors { return SelectorUtils.getElementByDataTestId(view, "model-select-button"); } - public static getListbox(view: WebView) { - const listbox = view.findWebElement(By.css('[role="listbox"]')); - } - public static getModelDropdownOption(view: WebView, option: string) { return view.findWebElement( By.xpath(`//*[@role="listbox"]//*[contains(text(), "${option}")]`), diff --git a/extensions/vscode/e2e/tests/GUI.test.ts b/extensions/vscode/e2e/tests/GUI.test.ts index d14eaad2a..b01feb35e 100644 --- a/extensions/vscode/e2e/tests/GUI.test.ts +++ b/extensions/vscode/e2e/tests/GUI.test.ts @@ -54,7 +54,6 @@ describe("GUI Test", () => { await TestUtils.waitForElement( () => GUISelectors.getThreadMessageByText(view, "I'm fine"), - 5000, ); }).timeout(600000000); });