gui tests: group-duplicate doesn't count WebKit's ResizeObserver loop notice as a page error (#1542)

webkit de failed in the full GUI suite, and 1 in 5 runs alone, with errors
== ['ResizeObserver loop completed with undelivered notifications.']. Traced
with every ResizeObserver callback logged per frame: as the Routing page
first lays out, the view's scrollbar comes and goes within one frame (#rt
362 -> 352 -> 362). routing.js's width marks (byWidth) and the stage
observer are told twice, past the loop's depth. WebKit reports that as a
page error; Chromium doesn't. The round is delivered on the next frame and
nothing is painted wrong. This is the same notice 75aa03e1a ruled on for
purpose-filter, and the test now ignores that one message with the reason
beside it. The cause in the app, which 89 other Routing tests could also
hit, is filed as #1542.

Run: group-duplicate.test.cjs alone, 5 times in WebKit (25/25) and once in
Chromium (5/5).
This commit is contained in:
yetone
2026-10-11 04:56:32 +08:00
parent d84ed7fcfd
commit e16db525ca
+6 -1
View File
@@ -82,7 +82,12 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
});
page.setDefaultTimeout(5000);
const errors = [], posts = [];
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. As the page first lays out, the view's
// scrollbar comes and goes in one frame (#rt 362 -> 352 -> 362), so the
// width marks and the stage are told twice, past the loop's depth. The
// round is delivered on the next frame and nothing is painted wrong.
page.on("pageerror", (e) => { if (!/^ResizeObserver loop completed with undelivered notifications/.test(e.message)) errors.push(e.message); });
await page.route("**/*", serve(lang, posts));
await page.goto("http://magpie.test/?view=routing");
await page.locator(".rt-groups > .rt-group").nth(1).waitFor();