From ee4a4c74323cdac64861a47f1fbea67f7627ceea Mon Sep 17 00:00:00 2001 From: yetone Date: Sat, 14 Nov 2026 18:01:13 +0800 Subject: [PATCH] gui tests: reasoning-speed leaves WebKit's cut-off fetch out of its page errors (#1350) The test goes from Routing to Usage, and WebKit reports the Routing page's /api/gateway/session-titles fetch that the goto cuts off as a page error ("... due to access control checks"), though the page catches it. webkit zh-TW and zh went red that way in 2 of 7 runs on mica. The filter is the one builtin-places, checkin-account and checkin-at already use for #1350. Run on mica: BROWSER=webkit node --test reasoning-speed 4 times, and both engines once after it (results in the next commit's record). --- internal/gui/tests/reasoning-speed.test.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/gui/tests/reasoning-speed.test.cjs b/internal/gui/tests/reasoning-speed.test.cjs index ef4ca17ce..a1c6451d6 100644 --- a/internal/gui/tests/reasoning-speed.test.cjs +++ b/internal/gui/tests/reasoning-speed.test.cjs @@ -96,7 +96,7 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium", page.setDefaultTimeout(5000); page.setDefaultNavigationTimeout(60000); const errors = []; - page.on("pageerror", (e) => errors.push(e.message)); + page.on("pageerror", (e) => { if (engine === "webkit" && /due to access control checks/.test(e.message)) return; errors.push(e.message); }); // a goto in WebKit can cut off a fetch (#1350) await page.route("**/*", serve(lang)); // the Routing page: each row, and the session's average