Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- @FE @FE-SignIn @TEST @ignore
- Feature:[FE] [Sign In] Reset Password
- The reset password feature allows users to click the link in the forgotten
- password email and gives them the ability to set a new password. Test cases
- have been written to ensure users cannot use old passwords to log in, as well
- as not being able to enter an invalid new password.
- Scenario: The user is unable to reset their password using an invalid password
- Given I have received the reset password email
- When I click the reset password link
- Given the Einstein Reset Your Password page is launched (/new-password)
- And I type '123' into the 1st input with the attribute 'password' and the value 'password'
- And I type '123' into the 2nd input with the attribute 'password' and the value 'password'
- Then I cannot click on the Reset Password button with the attribute 'type' and the value 'submit'
- Scenario: The user resets their password
- Given I have received the reset password email
- When I click the reset password link
- Given the Einstein Reset Your Password page is launched (/new-password)
- And I type '12345678' into the 1st input with the attribute 'password' and the value 'password'
- And I type '12345678' into the 2nd input with the attribute 'password' and the value 'password'
- Then I click on the 'Reset Password' button with the attribute 'type' and the value 'submit'
- And an h1 containing 'Password Reset ???????' appears
- Scenario: The user attempts to use their old password to sign in
- Given I have received the reset password email
- When I click the reset password link
- Given the Einstein Reset Your Password page is launched (/new-password)
- And I type 'newPassword' into the 1st input with the attribute 'password' and the value 'password'
- And I type 'newPassword' into the 2nd input with the attribute 'password' and the value 'password'
- Then I click on the 'Reset Password' button with the attribute 'type' and the value 'submit'
- And an h1 containing 'Password Reset ???????' appears
- Given the Einstein homepage is launched (/)
- When I click on the 'Sign In' button with the XPath '//*[@id="app"]/div/header/section[1]/div[2]/div[7]/button'
- Then the input with the attribute 'name' and the value 'email' exists
- And the input with the attribute 'name' and the value 'password' exists
- Then I type 'testing@einstein.exchange' into the input with the attribute 'name' and the value 'email'
- And I type 'oldPassword' into the input with the attribute 'name' and the value 'password'
- Then I click on the 'Sign In' button with the attribute 'type' and the value 'submit'
- But the div with the attribute 'message' containing 'Wrong username or password.' exists
- Scenario: The user uses their new password to sign in
- Given I have received the reset password email
- When I click the reset password link
- Given the Einstein Reset Your Password page is launched (/new-password)
- And I type 'newPassword' into the 1st input with the attribute 'password' and the value 'password'
- And I type 'newPassword' into the 2nd input with the attribute 'password' and the value 'password'
- Then I click on the 'Reset Password' button with the attribute 'type' and the value 'submit'
- And an h1 containing 'Password Reset ???????' appears
- Given the Einstein homepage is launched (/)
- When I click on the 'Sign In' button with the XPath '//*[@id="app"]/div/header/section[1]/div[2]/div[7]/button'
- Then the input with the attribute 'name' and the value 'email' exists
- And the input with the attribute 'name' and the value 'password' exists
- Then I type 'testing@einstein.exchange' into the input with the attribute 'name' and the value 'email'
- And I type 'newPassword' into the input with the attribute 'name' and the value 'password'
- Then I click on the 'Sign In' button with the attribute 'type' and the value 'submit'
- But the div with the attribute 'message' containing 'Wrong username or password.' exists
- Scenario: The user uses their current password to sign in after receiving the reset password email
- Given I have received the reset password email
- Given the Einstein homepage is launched (/)
- When I click on the 'Sign In' button with the XPath '//*[@id="app"]/div/header/section[1]/div[2]/div[7]/button'
- Then the input with the attribute 'name' and the value 'email' exists
- And the input with the attribute 'name' and the value 'password' exists
- Then I type 'testing@einstein.exchange' into the 'email' input titled 'Email Address' with the attribute 'name'
- And I type 'currentPassword' into the 'password' input titled 'Password' with the attribute 'name'
- Then I click on the 'Sign In' button with the attribute 'type' and the value 'submit'
- Then the 'My Dashboard' page loads (/my-dashboard)
RAW Paste Data


