Logo: Relish

  1. Sign in

Project: Anewstart annual_plan

Create Account

  • @vcr
  • @javascript

As a user I can create a Dishworld account
So I can checkout and purchase programming

Scenarios
New user can create an account without choosing a package
Given
I am on the Create Account page
When
I fill in "email" with "[email protected]"
And
I fill in "password" with "s3cr3t"
And
I fill in "password_confirmation" with "s3cr3t"
And
I press "Create Account"
Then
I should be on the Homepage
And
I should see "Sign Out"
Signup with an email that's already taken
Given
there exists an account with email "[email protected]"
And
I am on the Create Account page
When
I fill in "email" with "[email protected]"
And
I fill in "password" with "s3cr3t"
And
I fill in "password_confirmation" with "s3cr3t"
And
I press "Create Account"
Then
I should see "Looks like that email address already has an account. Please Sign In with that address."
Invalid email format
Given
I am on the Create Account page
When
I fill in "email" with "newuser"
And
I fill in "password" with "s3cr3t"
And
I fill in "password_confirmation" with "s3cr3t"
And
I press "Create Account"
Then
I should see "Email addresses must be in the format of [email protected]"
Short password
Given
I am on the Create Account page
When
I fill in "email" with "[email protected]"
And
I fill in "password" with "s3"
And
I fill in "password_confirmation" with "s3"
And
I press "Create Account"
Then
I should see "Passwords require a minimum of 4 characters."
Bad password confirmation
Given
I am on the Create Account page
When
I fill in "email" with "[email protected]"
And
I fill in "password" with "s3cr3t"
And
I fill in "password_confirmation" with "somethingelse"
And
I press "Create Account"
Then
I should see "Password fields do not match"

Last published over 5 years ago by Edan Rosenberg.