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).
This commit is contained in:
@@ -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 });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user