Logo: Relish

  1. Sign in

Project: Storymachine

Password change

When I am concerned with the security of my current password, I wish to be
able to set a new one.

When changing my password, I want the site to ask for and validate my current
password, to make it harder for someone who has accessed my account without
my permission to change the password.

Background
Given
I am logged in
Scenarios
Success
Given
I am on the user profile page
When
I enter my current password into the password change form
When
I enter a new password into the password change form
And
I click "Update password"
Then
I should see a success message
And
my password should be updated
Omit current password
Given
I am on the user profile page
When
I enter a new password into the password change form
And
I click "Update password"
Then
I should see an error message
And
my password should not be updated
Provide incorrect current password
Given
I am on the user profile page
When
I enter an incorrect current password into the password change form
When
I enter a new password into the password change form
And
I click "Update password"
Then
I should see an error message
And
my password should not be updated

Last published over 5 years ago by Gregory Perry.