Skip to main content

Auth Child Signup Provision Invalid Code

EPIC: auth
Authentication + Onboarding
STORY: child_signup
As a child, I can sign up with a household code and a username to land in the household pending my parent's consent.
AC: provision_invalid_code
When provisionChildAuth throws ChildLinkException(invalidCode), the typed error copy shows and no signIn or rollback is called.

initial state — Welcome page (unauthenticated landing)

Expect:
  • booting signed out lands on the Welcome page
Events:
  • [ANALYTIC] [page]: WelcomeRoute

tap Sign in → sign-in page

User Actions:
  • Tapped: widget with key [<'WelcomePage.signIn'>]
Expect:
  • tapping Sign in on Welcome pushes the sign-in page
Events:
  • [ANALYTIC] [page]: SignInRoute
User Actions:
  • Tapped: widget with key [<'SignInPage.childSignupLink'>]
Expect:
  • tapping the child signup link navigates to ChildSignupPage
  • the child signup title renders
Events:
  • [ANALYTIC] [page]: ChildSignupRoute

fill all fields with an invalid code

User Actions:
  • Entered text: BAD-CODE
  • Entered text: robin
  • Entered text: secure1234
  • Entered text: secure1234
  • Entered text: Robin
Events:
  • ChildSignupCodeChanged
  • ChildSignupUsernameChanged
  • ChildSignupPasswordChanged
  • ChildSignupConfirmPasswordChanged
  • ChildSignupDisplayNameChanged

tap Submit → invalidCode error shown; signIn + rollback NOT called

User Actions:
  • Tapped: widget with key [<'ChildSignup.submit'>]
Expect:
  • stays on the child signup page after rejection
  • the typed invalidCode error copy is shown
Events:
  • ChildSignupSubmitted