MDL-38020 behat: Correct singleselect usage

This commit is contained in:
Andrew Nicols
2016-01-12 12:23:53 +08:00
parent 418a05d706
commit 70d41bafa1
@@ -22,16 +22,14 @@ Feature: Manage enrollments from participants page
And I follow "Course 1"
And I navigate to "Participants" node in "Current course > C1"
@javascript
Scenario: Check the participants link when "All partipants" selected
Given I set the field "roleid" to "All participants"
Given I select "All participants" from the "roleid" singleselect
When I follow "Edit"
Then I should see "Enrolled users" in the "h2" "css_element"
And the field "Role" matches value "All"
@javascript
Scenario: Check the participants link when "Student" selected
Given I set the field "roleid" to "Student"
Given I select "Student" from the "roleid" singleselect
When I follow "Edit"
Then I should see "Enrolled users" in the "h2" "css_element"
And the field "Role" matches value "Student"