Logo: Relish

  1. Sign in

Project: Login

Reset

A user navigates to the url received by email to reset his forgotten password.
The reset password form validates the security answers and the new password.

Background
Given
Natasha Romanoff opens the reset password page providing the token 'reset_password_token'
Scenarios
reset password using temporary url provided by service now
Then
Natasha Romanoff should see her own first security question
And
Natasha Romanoff should see her own second security question
When
Natasha Romanoff enters her security answers
And
Natasha Romanoff sets her new password
And
Natasha Romanoff clicks on 'Submit'
Then
Natasha Romanoff should see the Loading page
And
Natasha Romanoff should see 'Your password has been changed' after few seconds
When
Natasha Romanoff clicks on 'OK'
Then
Natasha Romanoff should be redirected to the login page
Wrong security answers
When
Natasha Romanoff enters the first_security_answer security answer to the first security question
And
Natasha Romanoff enters the second_security_answer security answer to the second security question
And
Natasha Romanoff sets her new password
And
Natasha Romanoff clicks on 'Submit'
Then
Natasha Romanoff should see 'You have answered one or more questions incorrectly.'
Then
Natasha Romanoff should see 'Please provide your answers again.'
Examples:
first_security_answer second_security_answer
correct incorrect
incorrect correct
incorrect incorrect
Missing security answers
When
Natasha Romanoff enters the security_answer security answer to the security_question security question
And
Natasha Romanoff sets her new password
And
Natasha Romanoff clicks on 'Submit'
Then
Natasha Romanoff should see 'error_message'
Examples:
security_answer security_question error_message
correct first The answer to your second security question is required
correct second The answer to your first security question is required
Missing passwords
When
Natasha Romanoff clicks on 'Submit'
Then
Natasha Romanoff should see 'Please enter a password'
Wrong confirmation password
And
Natasha Romanoff enters 'ValidPa55word' in the new password field
And
Natasha Romanoff enters 'InvalidPa55word' in the confirm new password field
When
Natasha Romanoff clicks on 'Submit'
Then
Natasha Romanoff should see 'Please check passwords match'
Password not matching criteria
And
Natasha Romanoff enters 'password' in the new password field
And
Natasha Romanoff enters '
And
Natasha Romanoff clicks on 'Submit'
Then
Natasha Romanoff should see 'Password must match criteria'
Examples:
password
password
Password
12345
123.45
pass.word
password12
Ma11aM5
&^%$"$*#

Last published about 7 years ago by John James.