gui tests: routing-save counts By weight among a subscription's routings
88ecae173offers 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 at88ecae173(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 at88ecae173before this. grep of internal/gui/tests for another "account ? 7" count found none. Test-only, so no tag.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user