(core) Upgrade browser testing dependencies

Summary: Upgrades mocha-webdriver to 0.3.3 and updates any affected tests.

Test Plan: Existing tests.

Reviewers: paulfitz

Reviewed By: paulfitz

Subscribers: dsagal, paulfitz

Differential Revision: https://phab.getgrist.com/D4246
This commit is contained in:
George Gevoian
2024-05-07 16:58:42 -04:00
parent d5e82a4e88
commit 5c35501654
3 changed files with 97 additions and 63 deletions

View File

@@ -314,8 +314,9 @@ describe("ViewLayoutCollapse", function() {
await move(getDragElement(COMPANIES_CHART));
await driver.sleep(100);
await move(getDragElement(COMPANIES_CHART), {x : 200});
await driver.sleep(300);
assert.lengthOf(await driver.findAll(".layout_editor_drop_target.layout_hover"), 1);
await gu.waitToPass(async () => {
assert.lengthOf(await driver.findAll(".layout_editor_drop_target.layout_hover"), 1);
}, 1000);
await driver.withActions(actions => actions.release());
await driver.sleep(600);