Skip to content

Every agent's model. One place. Codex on DeepSeek, Claude Code on Kimi, from the menu bar.

gui tests: account discovery compares with the first row that has Off and On (#3497)

yetone5e3dd1d52213
diff --git a/internal/gui/tests/account-discovery.test.cjs b/internal/gui/tests/account-discovery.test.cjs
index e7c187766..dfea58396 100644
--- a/internal/gui/tests/account-discovery.test.cjs
+++ b/internal/gui/tests/account-discovery.test.cjs
@@ -108,8 +108,10 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
const sub = (await box.locator(".sub").textContent()).trim();
assert(sub.includes("Claude Code") && sub.includes("Codex"), "the sub names what is read: " + sub);
if (lang !== "en") assert(!sub.startsWith("Read the accounts"), lang + " sub not translated");
- // the same Off and On as Mask secrets above it
- assert.deepEqual(await opts.allTextContents(), await page.locator("#redactList .row").first().locator(".opt").allTextContents());
+ // the same Off and On as Mask secrets above it (the list opens
+ // with "What was masked", an Open onto Insights › Masking, which
+ // has no Off and On of its own)
+ assert.deepEqual(await opts.allTextContents(), await page.locator("#redactList .row").filter({ has: page.locator(".opt") }).first().locator(".opt").allTextContents());
assert.equal(await opts.nth(1).evaluate((b) => b.classList.contains("on")), true, "On by default");
const row = box.locator(".row");