MDL-38020 behat: Correct singleselect usage

This commit is contained in:
Andrew Nicols
2016-01-12 09:31:05 +00:00
committed by Dan Poltawski
parent a1013a8054
commit c57542a8d2
@@ -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"