Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 37 lines (32 sloc) 1.31 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
Feature: Sign up with handle
In order to get access to protected sections of the site
A user
Should be able to sign up with handle

Scenario: User signs up with no handle
When I go to the sign up page
And I fill in "Email" with "email@person.com"
And I fill in "Password" with "password"
And I press "Sign up"
Then I should see error messages

Scenario: User signs up with invalid handle
When I go to the sign up page
And I fill in "Email" with "email@person.com"
And I fill in "Handle" with "thisusernameiswaytoolongseriouslywaytoolong"
And I fill in "Password" with "password"
And I press "Sign up"
Then I should see an error message

Scenario: User signs up with registered handle
Given I am signed up as "email@person.com"
When I go to the sign up page
And I fill in "Email" with "email@person.com"
And I fill in "Handle" with "validhandledude"
And I fill in "Password" with "password"
And I press "Sign up"
Then I should see an error message

Scenario: User signs up with valid data
When I go to the sign up page
And I fill in "Email" with "email@person.com"
And I fill in "Handle" with "validhandledude"
And I fill in "Password" with "password"
And I press "Sign up"
Then I should be signed in
Something went wrong with that request. Please try again.