-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1838 from creative-commoners/pulls/3/fix-behat
MNT Update behat tests
- Loading branch information
Showing
3 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ Feature: Lost Password | |
And there should be an email to "[email protected]" titled "Your password reset link" | ||
When I click on the "password reset link" link in the email to "[email protected]" | ||
Then I should see "Please enter a new password" | ||
When I fill in "NEWsecret!@#*&^" for "New Password" | ||
And I fill in "NEWsecret!@#*&^" for "Confirm New Password" | ||
When I fill in "the-quick-brown-fox" for "New Password" | ||
And I fill in "the-quick-brown-fox" for "Confirm New Password" | ||
And I press the "Change Password" button | ||
Then the password for "[email protected]" should be "NEWsecret!@#*&^" | ||
Then the password for "[email protected]" should be "the-quick-brown-fox" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,8 +37,8 @@ Feature: Manage my own settings | |
Scenario: I can't reset the password without the original | ||
Given I follow "Change Password" | ||
And I fill in "Current Password" with "idontknow" | ||
And I fill in "New Password" with "NEWsecret!@#*&^" | ||
And I fill in "Confirm Password" with "NEWsecret!@#*&^" | ||
And I fill in "New Password" with "the-quick-brown-fox" | ||
And I fill in "Confirm Password" with "the-quick-brown-fox" | ||
And I press the "Save" button | ||
Then I should see "The current password you have entered is not correct." | ||
|
||
|
@@ -48,16 +48,16 @@ Feature: Manage my own settings | |
And I fill in "New Password" with "a" | ||
And I fill in "Confirm Password" with "a" | ||
And I press the "Save" button | ||
Then I should see "Password is too short" | ||
Then I should see "The password strength is too low. Please use a stronger password." | ||
|
||
Scenario: I can change my password | ||
Given I follow "Change Password" | ||
And I fill in "Current Password" with "secret" | ||
And I fill in "New Password" with "NEWsecret!@#*&^" | ||
And I fill in "Confirm Password" with "NEWsecret!@#*&^" | ||
And I fill in "New Password" with "the-quick-brown-fox" | ||
And I fill in "Confirm Password" with "the-quick-brown-fox" | ||
And I press the "Save" button | ||
And I am not logged in | ||
When I log in with "[email protected]" and "NEWsecret!@#*&^" | ||
When I log in with "[email protected]" and "the-quick-brown-fox" | ||
And I go to "admin/myprofile" | ||
Then I should see the CMS | ||
|
||
|