From ff8b437117aa535a682ae786fe387db0d2c25a05 Mon Sep 17 00:00:00 2001 From: yetone Date: Fri, 13 Nov 2026 04:05:40 +0800 Subject: [PATCH] gui tests: library-loading's tab lists include Claude plugins (#6204) 6af54dc9a gave the Library a Claude plugins tab after Subagents, always shown, and library-loading's two tab lists were not brought along, so the test was red in chromium and webkit on main since 11-11. Run (mote): library-loading 6/6 ok, chromium and webkit, 980px and 420px. Before the change, at origin/main af7edcc02: 2 of 6 red (the two tab lists), the same red #6204 names. Not tried: the rest of the GUI suite; only this test file changed. --- internal/gui/tests/library-loading.test.cjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/gui/tests/library-loading.test.cjs b/internal/gui/tests/library-loading.test.cjs index 27eed3d53..ffface44f 100644 --- a/internal/gui/tests/library-loading.test.cjs +++ b/internal/gui/tests/library-loading.test.cjs @@ -73,7 +73,7 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium", assert.equal(await skel.getAttribute("aria-busy"), "true"); const tabs = v.locator(".lib-head .lib-tabs .opt"); - assert.deepEqual(await tabs.allTextContents(), ["Instructions", "Memory", "MCP servers", "Skills", "Hooks", "Variables", "Subagents", "RTK", "billion-context"]); + assert.deepEqual(await tabs.allTextContents(), ["Instructions", "Memory", "MCP servers", "Skills", "Hooks", "Variables", "Subagents", "Claude plugins", "RTK", "billion-context"]); assert.equal(await v.locator(".lib-tabs .opt.on").textContent(), "Skills"); assert.ok(await v.locator(".lib-head .lib-more").isDisabled(), "the folder waits for the library"); // Skills in outline: rows with a switch, no section heading @@ -90,7 +90,7 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium", open(); await v.locator(".lib-head .lib-more:not([disabled])").waitFor(); assert.equal(await v.locator(".lib-skel").count(), 0, "the outline goes"); - assert.deepEqual(await v.locator(".lib-tabs .opt").allTextContents(), ["Instructions", "Memory", "MCP servers · 1", "Skills · 1", "Hooks", "Variables", "Subagents", "RTK", "billion-context", "Pi packages"]); + assert.deepEqual(await v.locator(".lib-tabs .opt").allTextContents(), ["Instructions", "Memory", "MCP servers · 1", "Skills · 1", "Hooks", "Variables", "Subagents", "Claude plugins", "RTK", "billion-context", "Pi packages"]); assert.equal(await v.locator(".lib-tabs .opt.on").textContent(), "Instructions"); assert.equal(await v.locator(".lib-head .lib-more").getAttribute("title"), "~/.magpie/library"); const after = await v.locator(".lib-tabs").boundingBox();