Skip to content

Commit

Permalink
MDL-54755 core: Correct behat language
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Jun 29, 2016
1 parent ffcbabc commit 53190b8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions login/tests/behat/change_password.feature
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ Feature: Change password

Scenario: A user can change his password manually
Given I am on site homepage
When I log in as "testuser"
And I log in as "testuser"
And I follow "Preferences" in the user menu
And I follow "Change password"
When I follow "Change password"
And I set the field "Current password" to "testuser"
And I set the field "New password" to "NewPassword1*"
And I set the field "New password (again)" to "NewPassword1*"
And I click on "Save changes" "button"
And I should see "Password has been changed"
Then I should see "Password has been changed"
And I click on "Continue" "button"
And I should see "Preferences" in the "#region-main" "css_element"
And I log out
Expand All @@ -30,13 +30,13 @@ Feature: Change password

Scenario: A user with expired password must change it when log in directly and then be redirected to the home page
Given I force a password change for user "testuser"
When I log in as "testuser"
Then I should see "You must change your password to proceed"
And I set the field "Current password" to "testuser"
And I log in as "testuser"
And I should see "You must change your password to proceed"
When I set the field "Current password" to "testuser"
And I set the field "New password" to "NewPassword1*"
And I set the field "New password (again)" to "NewPassword1*"
And I click on "Save changes" "button"
And I should see "Password has been changed"
Then I should see "Password has been changed"
And I click on "Continue" "button"
And I am on site homepage

Expand Down

0 comments on commit 53190b8

Please sign in to comment.