Skip to main content

Auth Setup Wizard Invite Code Joins Household

EPIC: auth
Authentication + Onboarding
STORY: setup_wizard
As a new household admin, I can walk the full onboarding wizard — household, first kid, parental consent, token value, first chore — and land on Today with everything set up.
AC: invite_code_joins_household
A confirmed no-member user enters a valid invite code on the setup page and lands in the joined household (the wizard is gone). Adult codes redeem immediately; child codes show a name prompt first.

open the "Have an invite code?" dialog

User Actions:
  • Tapped: widget with key [<'SetupPage.haveInviteCode'>]
Expect:
  • the invite-code entry dialog opens

enter a valid ADULT code → peek(adult) → redeemAndActivate → lands in the household

User Actions:
  • Entered text: CODE-JAMES-123
  • Tapped: widget with key [<'SetupPage.inviteCodeSubmit'>]
Expect:
  • accepting the invite lands in the household (Home)
  • the setup wizard is no longer shown
Events:
  • SetupInviteCodeSubmitted
  • [ANALYTIC] [page_popped]: SetupRoute
  • [ANALYTIC] [page]: HomeTabRoute
  • HouseholdStarted
  • TodayChoresStarted
  • HouseholdMembersChanged