Logo: Relish

  1. Sign in

Project: Anewstart annual_plan

Manage Accounts

  • @vcr

As a user
I want to update account details
So I can use account features

Scenarios
Edit Account
Given
I am logged in
And
I go to the My Account page
And
I click "edit name"
And
I fill in "account_name" with "David Ngo"
And
I fill in "account_password" with "test123"
And
I press "save"
And
I should be on the My Account page
And
I should see "David Ngo"
Edit Email
Given
I am logged in
And
I go to the My Account page
And
I click "edit email"
And
I fill in "account_email" with an unused email
And
I fill in "account_password" with "test123"
And
I press "save"
And
I should be on the My Account page
Edit Password
Given
I am logged in
And
I go to the My Account page
And
I click "edit password"
And
I fill in "Create new password" with "test123"
And
I fill in "Confirm new password" with "test123"
And
I fill in "Then enter your current password" with "test123"
And
I press "save"
And
I should be on the My Account page
  • @javascript
Edit Account with validation errors
Given
I am logged in
And
I go to the My Account page
When
I click "edit name"
And
I press "save"
Then
I should see "Please enter a name. Please enter a password."
When
I fill in "account_name" with "Chuck"
And
I fill in "account_password" with "test"
And
I press "save"
Then
I should see "Please enter your full name."
When
I fill in "account_name" with "Chuck Norris"
And
I fill in "account_password" with "test"
And
I press "save"
Then
I should see "Incorrect password"
When
I fill in "account_name" with "Chuck Norris"
And
I fill in "account_password" with "test123"
And
I press "save"
And
I should be on the My Account page
  • @javascript
Edit Email with validation errors
Given
I am logged in
And
I go to the My Account page
And
I click "edit email"
And
I fill in "account_email" with ""
And
I press "save"
Then
I should see "Please enter an email. Please enter a password."
When
I fill in "account_email" with "chucknorris.com"
And
I fill in "account_password" with "test"
And
I press "save"
Then
I should see "Email addresses must be in the format of [email protected]"
When
I fill in "account_email" with "[email protected]"
And
I fill in "account_password" with "test"
And
I press "save"
Then
I should see "Incorrect password"
And
I fill in "account_email" with an unused email
And
I fill in "account_password" with "test123"
And
I press "save"
And
I should be on the My Account page
  • @javascript
Edit Password with validation errors
Given
I am logged in
When
I go to the My Account page
And
I click "edit password"
And
I press "save"
Then
I should see "Please enter a new password. Please confirm password. Please enter your password."
When
I fill in "Create new password" with "tes"
Then
the field "new_password" should have class "fieldicon-xmark"
And
I fill in "Confirm new password" with "te"
Then
the field "new_password_confirmation" should have class "fieldicon-xmark"
When
I fill in "Then enter your current password" with "test"
And
I press "save"
Then
I should see "Passwords require a minimum of 4 characters. Password fields do not match."
When
I fill in "Create new password" with "test!"
And
I fill in "Confirm new password" with "test!"
And
I fill in "Then enter your current password" with "test"
And
I press "save"
Then
I should see "Password can only contain letters and numbers. Password confirmation requires only letters or numbers."
When
I fill in "Create new password" with "test1"
Then
the field "new_password" should have class "fieldicon-checkmark"
And
I fill in "Confirm new password" with "test1"
Then
the field "new_password_confirmation" should have class "fieldicon-checkmark"
And
I fill in "Then enter your current password" with "test"
And
I press "save"
Then
I should see "Incorrect password"
When
I fill in "Create new password" with "test1"
And
I fill in "Confirm new password" with "test1"
And
I fill in "Then enter your current password" with "test123"
And
I press "save"
Then
I should be on the My Account page

Last published about 7 years ago by Edan Rosenberg.