From 70d41bafa18381014bb9d2d27acab3c4bcf49f93 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Tue, 12 Jan 2016 12:23:20 +0800 Subject: [PATCH] MDL-38020 behat: Correct singleselect usage --- .../tests/behat/manage_enrolments_from_participants.feature | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/enrol/tests/behat/manage_enrolments_from_participants.feature b/enrol/tests/behat/manage_enrolments_from_participants.feature index 4ad12c3b18f..82e7f11b822 100644 --- a/enrol/tests/behat/manage_enrolments_from_participants.feature +++ b/enrol/tests/behat/manage_enrolments_from_participants.feature @@ -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"