Remove the dead Profile link from the sidebar profile menu
CI / full-gate (push) Successful in 2m39s

This commit is contained in:
2026-08-05 01:01:14 +02:00
parent 2b09635ed5
commit 3c64621515
6 changed files with 4 additions and 4 deletions
+2
View File
@@ -187,6 +187,8 @@ test.describe.serial("authenticated admin journey", () => {
test("logout: signing out ends the session and returns to the login page", async () => {
await page.goto("/dashboard");
await page.locator("summary.profile").click(); // open the profile dropdown
// Sign out is the only item in it — the menu offers nothing that goes nowhere.
await expect(page.locator("details.menu:has(summary.profile) .menu-item")).toHaveText(["Sign out"]);
await page.locator('form[action="/logout"] button[type="submit"]').click();
await page.waitForURL(/\/login(\?|$)/);
// The session is gone: /dashboard is gated, so it bounces back to the login page (no admin nav).