Answer stability round 1: 0 🔴, 3 🟡 (0 misread); test the page-token loop and an unmatched nav path, trim chrome comments

This commit is contained in:
2026-11-09 01:25:14 +01:00
parent 1bcb31ff58
commit d6b8a7982e
3 changed files with 34 additions and 8 deletions
+10
View File
@@ -67,6 +67,16 @@ test("a gated section (like the admin plugin) shows to a holder; a sub-path mark
assert.equal(admin.children!.find((c) => c.label === "Groups")!.current, undefined);
});
test("a path no nav leaf owns marks nothing current and opens nothing", () => {
const chrome = buildPageChrome({
currentPath: "/elsewhere", menu: DEFAULT_MENU, plugins: [scheduling],
user: { email: "ada@x.io", id: "u1", permissions: ["scheduling:read"] },
});
const section = chrome.nav.find((n) => n.label === "Scheduling")!;
assert.equal(section.open, undefined);
assert.equal(section.children!.some((c) => c.current), false);
});
test("branding logo + default theme flow through when set", () => {
const menu: MenuConfig = { branding: { logo: "/logo.svg", name: "Acme", theme: "dark" }, override: {} };
const chrome = buildPageChrome({ menu });