Files
moodle/user/tests/behat/edituserpassword.feature
T
David Monllao 1f631c7c63 MDL-44440 behat: Changing , for > as a navigation tree nodes separator
Using greater than as seems a more natural separator
than the comma when separating nodes which have a
hierarchy relation.
2014-03-10 13:35:40 +08:00

19 lines
905 B
Gherkin

@core @core_user
Feature: Enable/disable password field based on authentication selected.
In order edit a user password properly
As an admin
I need to be able to notice if the change in password is allowed by athuentication plugin or not
@javascript
Scenario: Verify the password field is enabled/disabled based on authentication selected, in user edit advanced page.
Given I log in as "admin"
And I follow "My home"
When I navigate to "Add a new user" node in "Site administration > Users > Accounts"
Then the "newpassword" "field" should be enabled
And I set the field "auth" to "Web services authentication"
And the "newpassword" "field" should be disabled
And I set the field "auth" to "Email-based self-registration"
And the "newpassword" "field" should be enabled
# We need to cancel/submit a form that has been modified.
And I press "Create user"