From ced880ef00763830e5b478c1386909089ff6a4fc Mon Sep 17 00:00:00 2001 From: yetone Date: Sat, 31 Oct 2026 15:50:21 +0800 Subject: [PATCH] gui tests: routing-save counts By weight among a subscription's routings 88ecae173 offers By weight for a subscription's accounts as for keys, so the editor's Routing shows 8 options for WorkBuddy AI, not 7. The test still expected 7 for an account provider and was red in both engines at 88ecae173 (8 !== 7, "900px WorkBuddy AI: every routing back"). Run: routing-save.test.cjs on the Linux box (wsl-run) 12/12; it was 4 red there at 88ecae173 before this. grep of internal/gui/tests for another "account ? 7" count found none. Test-only, so no tag. --- internal/gui/tests/routing-save.test.cjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/gui/tests/routing-save.test.cjs b/internal/gui/tests/routing-save.test.cjs index 3ea76b198..812f79224 100644 --- a/internal/gui/tests/routing-save.test.cjs +++ b/internal/gui/tests/routing-save.test.cjs @@ -159,7 +159,8 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium", // on again, every routing is back await page.evaluate(() => applyFeatures([{ id: "rotation", on: true }])); const back = await field.locator(".segs").first().evaluate((box) => [...box.querySelectorAll(".opt")].filter((b) => getComputedStyle(b).display !== "none").length); - assert.equal(back, p.account ? 7 : 8, `${where}: every routing back`); + // By weight is offered for accounts as for keys (rubbzha on X) + assert.equal(back, 8, `${where}: every routing back`); assert.deepEqual(errors, [], where); await page.context().close(); }