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:
+3
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user