import { expect, test } from "./setup/test"; import { STORAGE_STATE_PATH } from "./setup/global-setup"; /** * v1.4.16 A1 — Sidebar Admin entry must mirror the Settings entry * exactly: a single link with no sub-item expansion in the global * sidebar. The maintainer reported in v1.4.15 that the sidebar was auto-expanding * admin sub-items on `/admin/*` and the gravatar dropdown felt linked to * the sidebar — both unwanted UX. The in-shell `` already * renders its own per-section nav inside the page itself. * * This spec runs only on the desktop project (Pixel 5 hides the global * sidebar entirely). */ test.describe("sidebar Admin entry no-expansion", () => { test.use({ storageState: STORAGE_STATE_PATH }); test.beforeEach(({}, testInfo) => { test.skip( testInfo.project.name === "chromium-mobile", "global sidebar is desktop-only (md+)", ); }); test("on /admin/system-status the sidebar shows ONLY the single Admin link, no sub-list", async ({ page, }) => { await page.goto("/admin/system-status", { waitUntil: "domcontentloaded", }); // The desktop sidebar is the