Skip to content

Instantly share code, notes, and snippets.

@david
Last active December 18, 2015 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save david/5785510 to your computer and use it in GitHub Desktop.
Save david/5785510 to your computer and use it in GitHub Desktop.

Signup

Users need to sign up to use our app because [purpose]. We don't want to scare users with a long form though, so we'll simply ask for the minimum information. In our case that's the name, email and a password.

We don't ask users to confirm the password because they can easily reset it using the Forgot Password? link.

When a user signs up successfully, they will be sent to the dashboard. We will send them an email confirming the sign up.

Example: Successful signup
  Given I am a visitor
  When I sign up using the following information:
    | email    | guybrush@threepwood.com |
    | name     | Guybrush Threepwood     |
    | password | ilikerootbeer           |
  Then I should see my personal dashboard
  And I should get an email confirming that I signed up

All fields are required, so the user will not be signed up if they fail to provide any of the required information.

Example: Missing fields
  Given I am a visitor
  When I try to sign up without submitting any information
  Then I should see the following errors:
    | email is missing    |
    | name is missing     |
    | password is missing |

Emails are unique, so using an email that already exists also results in an error.

Example: Existing email
  Given a user exists with email "guybrush@threepwood.com"
  When I try to sign up using the email "guybrush@threepwood.com"
  Then I should see the following error:
    | email is missing |

Forgot Password

Describe forgot password here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment