Created
December 6, 2012 15:27
-
-
Save superacidjax/4225314 to your computer and use it in GitHub Desktop.
Gherkin Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: User Resets Password | |
In order to get back in the system when I have forgotten my password | |
As a User on the sign in page | |
I want to reset my password | |
- click forgot password | |
- I am taken to the reset password page | |
- provide email | |
- click reset password | |
- I receive an email with a reset password link | |
- click the reset password link | |
- I am taken to the new password page | |
- provide | |
-- password | |
-- password confirmation | |
- click save | |
- I am taken to my dashboard | |
- my password is changed | |
Scenario: | |
Given the following client: | |
| email | [email protected] | | |
And I am on the homepage | |
When I follow "Sign in" | |
And I follow "Forgot password" | |
And I fill in "Email" with "[email protected]" | |
And I press "Retrieve Password" | |
Then "[email protected]" should receive 1 email | |
When I open the email | |
And I follow the first link in the email | |
And I fill in "Password" with "whatever" | |
And I fill in "Password confirmation" with "whatever" | |
And I press "Change My Password" | |
Then I should see "Your password was changed successfully. You are now signed in." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment