Logo: Relish

  1. Sign in

Project: Login

Forgot Password Errors

A user enters invalid email to retrieve his password via forgotten password page.
User service responds with status codes 404 and 500.

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
  • @integration
Invalid email
Given
Obadiah Stane enters 'invalid_address' in the email field
When
Obadiah Stane clicks on 'continue'
Then
Obadiah Stane should see 'Please enter a valid email address'
User details not found
Given
the user service responds with a 404 error
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'
And
the following info should be logged: '404 from user service'
Internal server error from user service
Given
the user service responds with a 500 error
When
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.