fix: try long polling
This commit is contained in:
parent
c7fcbff7b0
commit
bf916bc44c
2 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ export class SelectorUtils {
|
|||
): Promise<WebElement> {
|
||||
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']")
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue