From a3bfb41cddb3329483d2db8819e3e885e13b6b1f Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Thu, 12 Oct 2017 17:06:13 +0800 Subject: [PATCH] MDL-59984 enrol: Apply more filters to multiple filters scenario --- user/tests/behat/filter_participants.feature | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/user/tests/behat/filter_participants.feature b/user/tests/behat/filter_participants.feature index de0180065d4..ad35b36bc0e 100644 --- a/user/tests/behat/filter_participants.feature +++ b/user/tests/behat/filter_participants.feature @@ -82,6 +82,26 @@ Feature: Course participants can be filtered And I should not see "Student 2" in the "participants" "table" And I should not see "Student 4" in the "participants" "table" And I should not see "Teacher 1" in the "participants" "table" + # Add more filters. + And I open the autocomplete suggestions list + And I click on "Enrolment methods: Manual enrolments" item in the autocomplete list + And I open the autocomplete suggestions list + And I click on "Group: Group 2" item in the autocomplete list + And I should see "Student 3" in the "participants" "table" + But I should not see "Teacher 1" in the "participants" "table" + And I should not see "Student 1" in the "participants" "table" + And I should not see "Student 2" in the "participants" "table" + And I should not see "Student 4" in the "participants" "table" + # Deselect the active status filter. + And I click on "Status: Active" "text" in the ".form-autocomplete-selection" "css_element" + # Apply Status: Inactive filter. + And I open the autocomplete suggestions list + And I click on "Status: Inactive" item in the autocomplete list + Then I should see "Student 2" in the "participants" "table" + But I should not see "Student 4" in the "participants" "table" + And I should not see "Student 1" in the "participants" "table" + And I should not see "Student 3" in the "participants" "table" + And I should not see "Teacher 1" in the "participants" "table" @javascript Scenario: Filter by keyword