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 -1
View File
@@ -58,7 +58,9 @@ def main() -> None:
user.is_suspended = False
user.is_demo = False
user.google_sub = None
user.role = "user"
# Admin so the E2E can reach the admin-only pages (scheduler / config / users / audit) and
# thus the render ternary's admin branches — the primary real user (npeter83) is admin too.
user.role = "admin"
user.display_name = "E2E Tester"
user.preferences = {"language": "en"}
db.commit()