(core) updates from grist-core

This commit is contained in:
Paul Fitzpatrick
2024-06-11 09:18:23 -04:00
10 changed files with 247 additions and 28 deletions

View File

@@ -66,8 +66,13 @@ describe('DropdownConditionEditor', function () {
'user.A\nc\ncess\n ',
]);
});
await gu.sendKeysSlowly(['hoice not in $']);
await gu.sendKeysSlowly(['hoice not in ']);
// Attempts to reduce test flakiness by delaying input of $. Not guaranteed to do anything.
await driver.sleep(100);
await gu.sendKeys('$');
await gu.waitToPass(async () => {
// This test is sometimes flaky here. It will consistently return the wrong value, usually an array of
// empty strings. The running theory is it's an issue in Ace editor.
const completions = await driver.findAll('.ace_autocomplete .ace_line', el => el.getText());
assert.deepEqual(completions, [
'$\nName\n ',

View File

@@ -311,7 +311,9 @@ describe("ViewLayoutCollapse", function() {
// Move back and drop.
await gu.getSection(COMPANIES_CHART).getRect();
await move(getDragElement(COMPANIES_CHART));
await move(getDragElement(COMPANIES_CHART), {x : 50});
await driver.sleep(100);
await move(getDragElement(COMPANIES_CHART), {x : 100});
await driver.sleep(100);
await move(getDragElement(COMPANIES_CHART), {x : 200});
await gu.waitToPass(async () => {