Skip to content

Commit

Permalink
MDL-53048 behat: Fixed unmasked password field to select
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajesh Taneja committed Oct 25, 2016
1 parent 6858c7a commit 39946dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions admin/tool/behat/tests/behat/manipulate_forms.feature
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ Feature: Forms manipulation
And I click on "Edit profile" "link" in the "region-main" "region"
When I set the field "First name" to "Field value"
And I set the field "Select a country" to "Japan"
And I set the field "Unmask" to "1"
And I set the field "New password" to "TestPass"
Then the field "First name" matches value "Field value"
And the "Select a country" select box should contain "Japan"
And the field "Unmask" matches value "1"
And I set the field "Unmask" to ""
And the field "Unmask" matches value ""
And the field "New password" matches value "TestPass"
And I press "Update profile"

@javascript
Expand Down
6 changes: 3 additions & 3 deletions user/tests/behat/edituserpassword.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ Feature: Enable/disable password field based on authentication selected.
Given I log in as "admin"
And I click on "Dashboard" "link" in the "Navigation" "block"
When I navigate to "Add a new user" node in "Site administration > Users > Accounts"
Then the "newpassword" "field" should be enabled
Then the "New password" "field" should be enabled
And I set the field "auth" to "Web services authentication"
And the "newpassword" "field" should be disabled
And the "New password" "field" should be disabled
And I set the field "auth" to "Email-based self-registration"
And the "newpassword" "field" should be enabled
And the "New password" "field" should be enabled
# We need to cancel/submit a form that has been modified.
And I press "Create user"

0 comments on commit 39946dc

Please sign in to comment.