mirror of
https://github.com/moodle/moodle.git
synced 2025-04-26 19:03:38 +02:00
MDL-54755 core: Correct behat language
This commit is contained in:
parent
ffcbabcdd0
commit
53190b8077
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user