Logo: Relish

  1. Sign in

Project: Hotel

User edits account

Background
Given
an admin
And
I am signed in
And
I follow "edit account"
Then
I should see "Update account"
Scenarios
User edits own account
When
I fill in the following:
Email [email protected]
First Name Bob
Last Name Dobbs
Password passwordy
Password Confirmation passwordy
And
I click "save changes"
Then
I should see "Successfully updated user account."
And
I should be on the hotels page
User edits own account failing validations
When
I fill in the following:
Email [email protected]
First Name Bob
Last Name Dobbs
Password passwordy
Password Confirmation doesn't match
And
I click "save changes"
Then
I should see "Password confirmation doesn't match Password"
And
I should be redirected to edit account for user
User cancels editing
When
I follow "cancel"
Then
I should be on the hotels page

Last published over 5 years ago by Faraaz Khan.