stash: works locally
This commit is contained in:
parent
bf916bc44c
commit
1238a66b2d
4 changed files with 7 additions and 7 deletions
|
|
@ -58,8 +58,7 @@ export class NextEditActions {
|
|||
|
||||
const svgDecoration = await TestUtils.waitForSuccess(
|
||||
() => NextEditSelectors.getSvgDecoration(VSBrowser.instance.driver),
|
||||
DEFAULT_TIMEOUT.XXL * 2,
|
||||
5000
|
||||
DEFAULT_TIMEOUT.XXL,
|
||||
);
|
||||
|
||||
const result = svgDecoration !== null;
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ export class NextEditSelectors {
|
|||
* Get the SVG decoration element if present (for next edit).
|
||||
*/
|
||||
public static async getSvgDecoration(driver: WebDriver) {
|
||||
console.log("===")
|
||||
return SelectorUtils.getElementByClassName(
|
||||
driver,
|
||||
"TextEditorDecorationType",
|
||||
|
|
|
|||
|
|
@ -33,8 +33,8 @@ 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.xpath(`//span[contains(@class, '${className}')]`),
|
||||
By.css(`*[class*='${className}']`),
|
||||
// By.xpath(`//span[contains(@class, '${className}')]`),
|
||||
// By.css("div[class*='TextEditorDecorationType'][style*='filter']")
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,15 +33,15 @@ describe("Next Edit", () => {
|
|||
it("Should force a Next Edit", async () => {
|
||||
const hasDecoration = await NextEditActions.forceNextEdit(editor);
|
||||
expect(hasDecoration).to.be.true;
|
||||
}).timeout(DEFAULT_TIMEOUT.XXL * 2 + 60000);
|
||||
}).timeout(DEFAULT_TIMEOUT.XXL + 60000);
|
||||
|
||||
it("Should accept Next Edit suggestion with Tab", async () => {
|
||||
const accepted = await NextEditActions.acceptNextEditSuggestion(editor);
|
||||
expect(accepted).to.be.true;
|
||||
}).timeout(DEFAULT_TIMEOUT.XXL * 2 + 60000);
|
||||
}).timeout(DEFAULT_TIMEOUT.XXL + 60000);
|
||||
|
||||
it("Should reject Next Edit suggestion with Esc", async () => {
|
||||
const rejected = await NextEditActions.rejectNextEditSuggestion(editor);
|
||||
expect(rejected).to.be.true;
|
||||
}).timeout(DEFAULT_TIMEOUT.XXL * 2 + 60000);
|
||||
}).timeout(DEFAULT_TIMEOUT.XXL + 60000);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue