Feature: User Authentication - reset password As a user I want to reset my password from the sign in page Scenario: Reset password as not registered user Given the user navigates to page "/login" And the user navigates to the forgot password page When the user enters the e-mail address "not@registered.com" And the user submits the e-mail form Then the user receives no password reset e-mail Scenario: Reset password as deleted user # Given the following "users" are in the database: # | email | password | name | # | stephen@hawking.uk | Aa12345_ | Stephen Hawking | Given the user navigates to page "/login" And the user navigates to the forgot password page When the user enters the e-mail address "stephen@hawking.uk" And the user submits the e-mail form Then the user receives no password reset e-mail Scenario: Reset password from signin page successfully # Given the following "users" are in the database: # | email | password | name | # | raeuber@hotzenplotz.de | Aa12345_ | Räuber Hotzenplotz | Given the user navigates to page "/login" And the user navigates to the forgot password page When the user enters the e-mail address "raeuber@hotzenplotz.de" And the user submits the e-mail form Then the user receives an e-mail containing the "password reset" link When the user opens the "password reset" link in the browser And the user enters the password "12345Aa_" And the user repeats the password "12345Aa_" And the user submits the password form And the user clicks the sign in button Then the user submits the credentials "raeuber@hotzenplotz.de" "Aa12345_" And the user cannot login But the user submits the credentials "raeuber@hotzenplotz.de" "12345Aa_" And the user is logged in with username "Räuber Hotzenplotz"