Skip to main content

Houses Houses Management Admin Guard Blocks Houses Route

EPIC: houses
Admin · Houses
STORY: houses_management
As an admin, I can create, edit and delete the household's houses (each with a name + optional address) from the Admin hub.
AC: admin_guard_blocks_houses_route
Even with a tappable entry, AdminGuard denies the /houses push to a member without manage-roles — the page never opens.

open the Admin hub as an admin

User Actions:
  • Tapped: widget with text "Profile"
  • Tapped: widget with key [<'MorePage.adminEntry'>]
Expect:
  • the admin reaches the hub
  • the Houses & rooms row is tappable for this guard test
Events:
  • [ANALYTIC] [page]: ProfileRoute
  • MoreStarted
  • MoreCurrentMemberChanged
  • [ANALYTIC] [page]: AdminRoute

tap Houses after losing access — the push is denied

User Actions:
  • Tapped: widget with key [<'AdminHubPage.housesEntry'>]
Expect:
  • AdminGuard blocks the non-admin from /houses
  • the user stays on the Admin hub