From 768228a4f42cb0cf62ca6e67a10e3d9c0ba4470b Mon Sep 17 00:00:00 2001 From: yetone Date: Sun, 1 Nov 2026 16:42:26 +0800 Subject: [PATCH] gui tests: routing-groups-jump's goto keeps its minute (#3478, #4470) 03c631b36 gave the goto { timeout: 15000 }. A goto's own timeout wins over the page's setDefaultNavigationTimeout(60000), which ce8b67de3 (#4470) gave every page after the patch was written, so the first load went from a minute back to 15s. The goto takes the page's minute again; the waits after it (rows, head, fit) keep their 15s. Run on mote at this tree: nav-timeout.test.cjs ok. routing-groups-jump 15/15 in chromium and in webkit. With rAF held 8s from page start (injected by an init script, not committed): origin/main's file 0/15 in both engines, every case at the fit's 5s wait; this tree 15/15 webkit, 14/15 chromium (one fit wait passed 15s under load ~120). --- internal/gui/tests/routing-groups-jump.test.cjs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/gui/tests/routing-groups-jump.test.cjs b/internal/gui/tests/routing-groups-jump.test.cjs index 00cc7e87d..227fb6766 100644 --- a/internal/gui/tests/routing-groups-jump.test.cjs +++ b/internal/gui/tests/routing-groups-jump.test.cjs @@ -65,10 +65,10 @@ function serve(lang, web) { // Under the whole suite's load webkit en once waited past the 5s default // for the head button's fit (#3478): the page sizes the button a frame // after the head's layout, and a loaded machine serves those first frames -// late, the fit with them. The waits that span the page's boot (the goto, -// the rows it fills, the head and the fit it gets in the first frames) get -// 15s; the ones inside a loaded page (the click's jump and its settle) -// keep the quick 5s. +// late, the fit with them. The waits that span the page's boot (the rows +// it fills, the head and the fit it gets in the first frames) get 15s; +// the goto keeps the minute every page's load has (#4470), and the waits +// inside a loaded page (the click's jump and its settle) the quick 5s. const boot = 15000; for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium", "webkit"])) { @@ -90,7 +90,7 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium", const errors = []; page.on("pageerror", (e) => errors.push(e.message)); await page.route("**/*", serve(lang, web)); - await page.goto("http://magpie.test/?view=routing", { timeout: boot }); + await page.goto("http://magpie.test/?view=routing"); await page.locator(".rt-group", { hasText: "Model M" }).waitFor({ state: "attached", timeout: boot }); await page.locator(".rt-reqs > *").first().waitFor({ state: "attached", timeout: boot });