MDL-54755 core: Correct behat language

This commit is contained in:
Andrew Nicols 2016-06-28 10:01:06 +08:00
parent ffcbabcdd0
commit 53190b8077

View File

@ -11,14 +11,14 @@ Feature: Change password
Scenario: A user can change his password manually Scenario: A user can change his password manually
Given I am on site homepage 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 "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 "Current password" to "testuser"
And I set the field "New password" to "NewPassword1*" And I set the field "New password" to "NewPassword1*"
And I set the field "New password (again)" to "NewPassword1*" And I set the field "New password (again)" to "NewPassword1*"
And I click on "Save changes" "button" 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 click on "Continue" "button"
And I should see "Preferences" in the "#region-main" "css_element" And I should see "Preferences" in the "#region-main" "css_element"
And I log out And I log out
@ -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 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" Given I force a password change for user "testuser"
When I log in as "testuser" And I log in as "testuser"
Then I should see "You must change your password to proceed" And I should see "You must change your password to proceed"
And I set the field "Current password" to "testuser" 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" to "NewPassword1*"
And I set the field "New password (again)" to "NewPassword1*" And I set the field "New password (again)" to "NewPassword1*"
And I click on "Save changes" "button" 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 click on "Continue" "button"
And I am on site homepage And I am on site homepage