diff --git a/internal/gui/tests/account-models.test.cjs b/internal/gui/tests/account-models.test.cjs index 39de34dd4..a49591820 100644 --- a/internal/gui/tests/account-models.test.cjs +++ b/internal/gui/tests/account-models.test.cjs @@ -121,6 +121,8 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium", const before = await row(page, id).evaluate((e) => Math.round(e.getBoundingClientRect().top)), sc = await scrolled(page); await b.click(); await page.waitForTimeout(200); + // the redraw's soft refresh starts 2px low; WebKit can hold it there past 200ms + await page.evaluate(() => Promise.all(document.querySelector("#modal .dialog").getAnimations().map((a) => a.finished))); assert.equal(await row(page, id).evaluate((e) => Math.round(e.getBoundingClientRect().top)), before, `${id}'s row moved`); assert.equal(await scrolled(page), sc, "a click scrolled"); };