Logo: Relish

  1. Sign in

Project: Login

Forgot Password

A user can reset his password by submitting his email in the forgotten password page

Background
Given
Obadiah Stane navigates to the login page
And
Obadiah Stane clicks on 'forgot password'
And
Obadiah Stane is on the forgot password request page
Scenarios
valid email
When
Obadiah Stane enters '[email protected]' in the email field
And
Obadiah Stane clicks on 'continue'
Then
Obadiah Stane should see 'Check your e-mail'
  • @integration
Invalid email
When
Obadiah Stane enters 'invalid_address' in the email field
And
Obadiah Stane clicks on 'continue'
Then
Obadiah Stane should see 'Please enter a valid email address'
HTTP status code 404 from user service
When
the user service responds with a 404 error
And
Obadiah Stane enters '[email protected]' in the email field
And
Obadiah Stane clicks on 'continue'
Then
Obadiah Stane should see 'Check your e-mail'
And
the following info should be logged: '404 from user service'
HTTP status code 500 from user service
When
the user service responds with a 500 error
And
Obadiah Stane enters '[email protected]' in the email field
And
Obadiah Stane clicks on 'continue'
Then
Obadiah Stane should see 'Sorry, there was a problem with your last request!'
And
Obadiah Stane should see 'Please try your request again later'
And
the following error should be logged: '500 from user service'

Last published about 7 years ago by John James.