diff --git a/internal/gui/tests/agent-panel-name-width.test.cjs b/internal/gui/tests/agent-panel-name-width.test.cjs index d9ee16a02..9b99d4e62 100644 --- a/internal/gui/tests/agent-panel-name-width.test.cjs +++ b/internal/gui/tests/agent-panel-name-width.test.cjs @@ -16,14 +16,17 @@ const { chromium, webkit } = require("playwright"); const assets = path.resolve(__dirname, "../assets"); const magpie = [{ value: "magpie", label: "magpie", icon: "magpie" }]; const LONG = "claude-opus-5-5 · Microsoft Foundry"; +// A list's words name its models only while one or two are ticked; more read +// "Showing x / N models", all of them "All N models" (menuSaid, 6915c8cde). +// So each list here has two of its models ticked, to be said by name. const AGENTS = [ - // the reporter's row, as /api/state had it + // the reporter's row: their two models, as menuSaid words them now { id: "workbuddy", name: "WorkBuddy", icon: "workbuddy-color", path: "/fixture/models.json", wired: true, menu: true, - models: { shown: 3, total: 3, names: ["gpt-6.1-sol · Microsoft Foundry", LONG] }, + models: { shown: 2, listed: 3, names: ["gpt-6.1-sol · Microsoft Foundry", LONG] }, fields: [{ key: "provider", label: "provider", value: "magpie", options: magpie }] }, // another agent whose own menu lists the models, a longer name { id: "claude-desktop", name: "Claude Desktop", path: "/fixture/claude-desktop.json", wired: true, menu: true, - models: { shown: 5, total: 9, names: [LONG, "gpt-6.1-sol · Microsoft Foundry"] }, + models: { shown: 2, listed: 9, names: [LONG, "gpt-6.1-sol · Microsoft Foundry"] }, fields: [{ key: "provider", label: "provider", value: "magpie", options: magpie }] }, // one model, said by a long label, with its logo and effort { id: "codex", name: "Codex", path: "~/.codex/config.toml",