gui tests: library-loading's tab lists include Claude plugins (#6204)
6af54dc9agave 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/mainaf7edcc02: 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.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user