gui tests: four update-* files leave WebKit's ResizeObserver notice out of page errors (#3942)
update-download-percent, update-hide, update-notes-ask and update-wait
counted every page error, and WebKit's "ResizeObserver loop completed
with undelivered notifications" (a layout that outran its observers,
no fault of the page) turned them red under load. They now leave that
one notice out, with the same filter update-release-page and eleven
other files use; any other page error still fails them.
Patch from Coffemon (JoeyWu-tech) on #3942, c5033248, reviewed line by
line and taken as is. Test only.
What was run (mote, Playwright 1.62.0, WebKit, at origin/main
f02d92c7b):
- origin/main's four files and these, each alone, twice: all green on
both (download-percent 3, hide 9, notes-ask 6, wait 11). mote didn't
show the notice alone, so the red wasn't reproduced here; Coffemon's
record has it red in every WebKit run on Linux under load (Playwright
1.58.2), the notice 18 to 20 times a run.
- A loaded try (six runs of main's four files at once, load ~115 from
other sessions too) hung past 30 minutes and was killed, so it says
nothing either way.
Not tried: a loaded WebKit run that finishes, on mote.
Co-authored-by: JoeyWu-tech <joey110551567@gmail.com>
This commit is contained in:
@@ -68,7 +68,8 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
|
||||
const errors = [];
|
||||
const page = await (await browser.newContext({ viewport: { width: 900, height: 560 }, reducedMotion: "reduce" })).newPage();
|
||||
page.setDefaultTimeout(5000);
|
||||
page.on("pageerror", (e) => errors.push(e.message));
|
||||
// WebKit's notice when a layout outruns its observers, not a fault
|
||||
page.on("pageerror", (e) => { if (!/^ResizeObserver loop completed with undelivered notifications/.test(e.message)) errors.push(e.message); });
|
||||
await page.route("**/*", server(lang, ctl));
|
||||
await page.goto("http://magpie.test/");
|
||||
const pill = page.locator("#update"), label = pill.locator("span").first();
|
||||
|
||||
@@ -92,7 +92,8 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
|
||||
const errors = [];
|
||||
const page = await (await browser.newContext({ viewport: { width: query.includes("panel") ? 420 : 900, height: 560 }, reducedMotion: "reduce" })).newPage();
|
||||
page.setDefaultTimeout(5000);
|
||||
page.on("pageerror", (e) => errors.push(e.message));
|
||||
// WebKit's notice when a layout outruns its observers, not a fault
|
||||
page.on("pageerror", (e) => { if (!/^ResizeObserver loop completed with undelivered notifications/.test(e.message)) errors.push(e.message); });
|
||||
await page.route("**/*", server(lang, ctl));
|
||||
await watchSettingsReads(page);
|
||||
await page.goto("http://magpie.test/" + query);
|
||||
|
||||
@@ -67,7 +67,8 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
|
||||
const w = words[lang], ctl = { installs: [], asked: [] }, errors = [];
|
||||
const page = await (await browser.newContext({ viewport: { width: 1000, height: 640 }, reducedMotion: "reduce" })).newPage();
|
||||
page.setDefaultTimeout(5000);
|
||||
page.on("pageerror", (e) => errors.push(e.message));
|
||||
// WebKit's notice when a layout outruns its observers, not a fault
|
||||
page.on("pageerror", (e) => { if (!/^ResizeObserver loop completed with undelivered notifications/.test(e.message)) errors.push(e.message); });
|
||||
await page.route("**/*", server(lang, ctl));
|
||||
await page.goto("http://magpie.test/?view=agents");
|
||||
const pill = page.locator("#update");
|
||||
@@ -123,7 +124,8 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
|
||||
const ctl = { installs: [], asked: [], one: true }, errors = [];
|
||||
const page = await (await browser.newContext({ viewport: { width: 1000, height: 640 }, reducedMotion: "reduce" })).newPage();
|
||||
page.setDefaultTimeout(5000);
|
||||
page.on("pageerror", (e) => errors.push(e.message));
|
||||
// WebKit's notice when a layout outruns its observers, not a fault
|
||||
page.on("pageerror", (e) => { if (!/^ResizeObserver loop completed with undelivered notifications/.test(e.message)) errors.push(e.message); });
|
||||
await page.route("**/*", server(lang, ctl));
|
||||
await page.goto("http://magpie.test/?view=agents");
|
||||
const pill = page.locator("#update");
|
||||
@@ -149,7 +151,8 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
|
||||
const w = words[lang], ctl = { installs: [], asked: [], newer: true }, errors = [];
|
||||
const page = await (await browser.newContext({ viewport: { width: 1000, height: 640 }, reducedMotion: "reduce" })).newPage();
|
||||
page.setDefaultTimeout(5000);
|
||||
page.on("pageerror", (e) => errors.push(e.message));
|
||||
// WebKit's notice when a layout outruns its observers, not a fault
|
||||
page.on("pageerror", (e) => { if (!/^ResizeObserver loop completed with undelivered notifications/.test(e.message)) errors.push(e.message); });
|
||||
await page.route("**/*", server(lang, ctl));
|
||||
await page.goto("http://magpie.test/?view=agents");
|
||||
const pill = page.locator("#update");
|
||||
|
||||
@@ -107,7 +107,8 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
|
||||
const errors = [];
|
||||
const page = await (await browser.newContext({ viewport: { width, height: 560 }, reducedMotion: "reduce" })).newPage();
|
||||
page.setDefaultTimeout(5000);
|
||||
page.on("pageerror", (e) => errors.push(e.message));
|
||||
// WebKit's notice when a layout outruns its observers, not a fault
|
||||
page.on("pageerror", (e) => { if (!/^ResizeObserver loop completed with undelivered notifications/.test(e.message)) errors.push(e.message); });
|
||||
await page.route("**/*", server(lang, ctl));
|
||||
await watchSettingsReads(page);
|
||||
await page.goto("http://magpie.test/" + query);
|
||||
|
||||
Reference in New Issue
Block a user