diff --git a/internal/gui/tests/purpose-filter.test.cjs b/internal/gui/tests/purpose-filter.test.cjs index 003b39be3..36e4af6e2 100644 --- a/internal/gui/tests/purpose-filter.test.cjs +++ b/internal/gui/tests/purpose-filter.test.cjs @@ -85,7 +85,14 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium", const page = await context.newPage(); page.setDefaultTimeout(7000); const errors = [], asked = []; - page.on("pageerror", (e) => errors.push(e.message)); + // WebKit reports a ResizeObserver round left to the next frame as a page + // error; Chromium doesn't. A purpose picked from a long list shrinks the + // Usage page, the click's hold (heldSizes) gives it room again before the + // paint, and the page's scrollbar coming back narrows the ledger by 8px + // in that same frame, so its own observers are told once more. Under + // load that lands past the loop's depth. Nothing is lost or painted + // wrong: the round is delivered on the next frame. + page.on("pageerror", (e) => { if (!/^ResizeObserver loop completed with undelivered notifications/.test(e.message)) errors.push(e.message); }); await page.route("**/*", server(lang, asked)); const choose = async (id, value) => { await click(page, page.locator(id));