MDL-59984 enrol: Apply more filters to multiple filters scenario

This commit is contained in:
Jun Pataleta
2017-10-16 09:47:39 +08:00
parent d1b55a33e6
commit a3bfb41cdd
@@ -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