notmarkmiranda / careless-whisper

0 stars 0 forks source link

Feature specs for testing login flow #9

Open notmarkmiranda opened 1 month ago

notmarkmiranda commented 1 month ago

Verify that the user login flow is covered by specs

Acceptance Criteria

  1. Unregistered user (UU) visits any page and there is a link to sign up or sign in that renders /sign-in
  2. For an unregistered user:
    • they will enter their 10-digit phone number into a text field and click the Submit button
    • they will be redirected to another page that has a text field to enter a one-time code
    • on success: they will be redirected to the /edit-profile page to add their name and/or nickname
    • on failure: they will be redirected to the first page requesting a 10-digit phone number
  3. For a registered user:
    • The flow will be the same with the exception for the on success, they will then be redirected to the dashboard