test(e2e): make the seeded account admin + cover admin nav pages

The E2E account is now admin (matching the real primary user), so the nav spec
also drives scheduler/config/users/audit — exercising the render ternary's admin
branches, which the upcoming PageShell refactor will restructure.
This commit is contained in:
2026-07-18 02:52:54 +02:00
parent c5a7296306
commit 833aee07d4
3 changed files with 10 additions and 5 deletions
+3 -2
View File
@@ -5,8 +5,9 @@ import { openApp } from "./helpers";
// Back steps through the history the app pushes. The render ternary + prop-drilled page state
// this exercises is precisely what the module-registry refactor replaces.
test.describe("page switching", () => {
// Core, non-admin modules that always exist for the E2E account.
const RAIL = ["channels", "playlists", "stats", "settings", "feed"];
// Core + admin modules (the E2E account is an admin, matching the real primary user), so this
// also exercises the render ternary's admin branches (scheduler / config / users / audit).
const RAIL = ["channels", "playlists", "stats", "scheduler", "config", "users", "audit", "settings", "feed"];
test("each rail item activates its page", async ({ page }) => {
await openApp(page);