From bf916bc44ce9fa6db5fe1ebfa687a2389524544b Mon Sep 17 00:00:00 2001 From: Jacob Kim Date: Wed, 23 Jul 2025 13:50:19 -0700 Subject: [PATCH] fix: try long polling --- extensions/vscode/e2e/actions/NextEdit.actions.ts | 3 ++- extensions/vscode/e2e/selectors/SelectorUtils.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/extensions/vscode/e2e/actions/NextEdit.actions.ts b/extensions/vscode/e2e/actions/NextEdit.actions.ts index 75134c558..f3cc6f81d 100644 --- a/extensions/vscode/e2e/actions/NextEdit.actions.ts +++ b/extensions/vscode/e2e/actions/NextEdit.actions.ts @@ -52,13 +52,14 @@ export class NextEditActions { console.log("Executed 'Force Next Edit' command"); // console.log("Waiting for SVG decoration to appear..."); - // await TestUtils.waitForTimeout(DEFAULT_TIMEOUT.XXL); + await TestUtils.waitForTimeout(DEFAULT_TIMEOUT.MD); // console.log("Wait completed, looking for decoration..."); console.log("Looking for decoration...") const svgDecoration = await TestUtils.waitForSuccess( () => NextEditSelectors.getSvgDecoration(VSBrowser.instance.driver), DEFAULT_TIMEOUT.XXL * 2, + 5000 ); const result = svgDecoration !== null; diff --git a/extensions/vscode/e2e/selectors/SelectorUtils.ts b/extensions/vscode/e2e/selectors/SelectorUtils.ts index 9edf63247..42b0b901a 100644 --- a/extensions/vscode/e2e/selectors/SelectorUtils.ts +++ b/extensions/vscode/e2e/selectors/SelectorUtils.ts @@ -33,7 +33,7 @@ export class SelectorUtils { ): Promise { return driver.findElement( // By.xpath("//*[contains(@class, 'ced-') and matches(@class, 'ced-2-TextEditorDecorationType[0-9]+-4')]") - // By.css(`[class*='${className}']`), + // By.css(`*[class*='${className}']`), By.xpath(`//span[contains(@class, '${className}')]`), // By.css("div[class*='TextEditorDecorationType'][style*='filter']") );