|
|
|
@@ -290,7 +290,7 @@ 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"
|
|
|
|
|
# Change the active status filter to inactive.
|
|
|
|
|
And I click on "Remove \"Active\" from filter" "button" in the "Filter 2" "fieldset"
|
|
|
|
|
And I click on "Active" "autocomplete_selection"
|
|
|
|
|
And I click on ".form-autocomplete-downarrow" "css_element" in the "Filter 2" "fieldset"
|
|
|
|
|
And I click on "Inactive" "list_item"
|
|
|
|
|
And I click on "Apply filters" "button"
|
|
|
|
@@ -540,7 +540,7 @@ Feature: Course participants can be filtered
|
|
|
|
|
And I should not see "Student 2" in the "participants" "table"
|
|
|
|
|
And I should not see "Teacher 1" in the "participants" "table"
|
|
|
|
|
# Search by idnumber (only).
|
|
|
|
|
And I click on "Remove \"student1@example.com\" from filter" "button" in the "Filter 1" "fieldset"
|
|
|
|
|
And I click on "student1@example.com" "autocomplete_selection"
|
|
|
|
|
And I set the field "Type..." to "SID"
|
|
|
|
|
And I press key "13" in the field "Type..."
|
|
|
|
|
And I click on "Apply filters" "button"
|
|
|
|
@@ -550,7 +550,7 @@ Feature: Course participants can be filtered
|
|
|
|
|
And I should see "Student 4" in the "participants" "table"
|
|
|
|
|
And I should not see "Teacher 1" in the "participants" "table"
|
|
|
|
|
# Search by city (only).
|
|
|
|
|
And I click on "Remove \"SID\" from filter" "button" in the "Filter 1" "fieldset"
|
|
|
|
|
And I click on "SID" "autocomplete_selection"
|
|
|
|
|
And I set the field "Type..." to "SCITY"
|
|
|
|
|
And I press key "13" in the field "Type..."
|
|
|
|
|
And I click on "Apply filters" "button"
|
|
|
|
@@ -560,13 +560,13 @@ Feature: Course participants can be filtered
|
|
|
|
|
And I should see "Student 4" in the "participants" "table"
|
|
|
|
|
And I should not see "Teacher 1" in the "participants" "table"
|
|
|
|
|
# Search by country text (only) - should not match.
|
|
|
|
|
And I click on "Remove \"SCITY\" from filter" "button" in the "Filter 1" "fieldset"
|
|
|
|
|
And I click on "SCITY" "autocomplete_selection"
|
|
|
|
|
And I set the field "Type..." to "GB"
|
|
|
|
|
And I press key "13" in the field "Type..."
|
|
|
|
|
And I click on "Apply filters" "button"
|
|
|
|
|
And I should see "Nothing to display"
|
|
|
|
|
# Check no match.
|
|
|
|
|
And I click on "Remove \"GB\" from filter" "button" in the "Filter 1" "fieldset"
|
|
|
|
|
And I click on "GB" "autocomplete_selection"
|
|
|
|
|
And I set the field "Type..." to "NOTHING"
|
|
|
|
|
And I press key "13" in the field "Type..."
|
|
|
|
|
And I click on "Apply filters" "button"
|
|
|
|
@@ -594,25 +594,25 @@ Feature: Course participants can be filtered
|
|
|
|
|
And I should not see "Student 4" in the "participants" "table"
|
|
|
|
|
And I should see "Teacher 1" in the "participants" "table"
|
|
|
|
|
# Search for other fields - should only see own results.
|
|
|
|
|
And I click on "Remove \"@example.\" from filter" "button" in the "Filter 1" "fieldset"
|
|
|
|
|
And I click on "@example." "autocomplete_selection"
|
|
|
|
|
And I set the field "Type..." to "SID"
|
|
|
|
|
And I press key "13" in the field "Type..."
|
|
|
|
|
And I click on "Apply filters" "button"
|
|
|
|
|
And I should see "Nothing to display"
|
|
|
|
|
And I click on "Remove \"SID\" from filter" "button" in the "Filter 1" "fieldset"
|
|
|
|
|
And I click on "SID" "autocomplete_selection"
|
|
|
|
|
And I set the field "Type..." to "TID"
|
|
|
|
|
And I press key "13" in the field "Type..."
|
|
|
|
|
And I click on "Apply filters" "button"
|
|
|
|
|
And I should see "Teacher 1" in the "participants" "table"
|
|
|
|
|
And I should not see "Student 1" in the "participants" "table"
|
|
|
|
|
And I click on "Remove \"TID\" from filter" "button" in the "Filter 1" "fieldset"
|
|
|
|
|
And I click on "TID" "autocomplete_selection"
|
|
|
|
|
And I set the field "Type..." to "CITY"
|
|
|
|
|
And I press key "13" in the field "Type..."
|
|
|
|
|
And I click on "Apply filters" "button"
|
|
|
|
|
And I should see "Teacher 1" in the "participants" "table"
|
|
|
|
|
And I should not see "Student 1" in the "participants" "table"
|
|
|
|
|
# Check no match.
|
|
|
|
|
And I click on "Remove \"CITY\" from filter" "button" in the "Filter 1" "fieldset"
|
|
|
|
|
And I click on "CITY" "autocomplete_selection"
|
|
|
|
|
And I set the field "Type..." to "NOTHING"
|
|
|
|
|
And I press key "13" in the field "Type..."
|
|
|
|
|
And I click on "Apply filters" "button"
|
|
|
|
|