X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/admin/tests/behat
home
/
cbholdings
/
pasukulu
/
admin
/
tests
/
behat
/
📁
..
📄
assign.feature
(4.09 KB)
📄
behat_admin.php
(5.15 KB)
📄
browse_users.feature
(3.05 KB)
📄
check.feature
(2.71 KB)
📄
display_short_names.feature
(858 B)
📄
enable_multiple_accounts_use_same_email.feature
(3.23 KB)
📄
filter_users.feature
(5.53 KB)
📄
filter_users_settings.feature
(9.77 KB)
📄
invalid_allcountrycodes.feature
(1.41 KB)
📄
language_settings.feature
(1.35 KB)
📄
manage_blocks.feature
(3.11 KB)
📄
manage_media.feature
(1.31 KB)
📄
manage_tokens.feature
(3.8 KB)
📄
moodlenet_outbound.feature
(2.5 KB)
📄
outgoing_mail.feature
(1.29 KB)
📄
purge_caches.feature
(1.4 KB)
📄
resetindentation.feature
(6.44 KB)
📄
search_areas.feature
(1.02 KB)
📄
set_admin_settings_value.feature
(895 B)
📄
site_administration.feature
(1.01 KB)
📄
siteadmin_webservice_breadcrumbs.feature
(1.74 KB)
📄
siteadmin_webservice_token_breadcrumbs.feature
(1.21 KB)
📄
task_logs.feature
(3.51 KB)
📄
webservice_users.feature
(1.97 KB)
Editing: filter_users.feature
@core @core_admin Feature: An administrator can filter user accounts by role, cohort and other profile fields In order to find the user accounts I am looking for As an admin I need to filter the users account list using different filter Background: Given the following "custom profile fields" exist: | datatype | shortname | name | | text | frog | Favourite frog | | text | undead | Type of undead | And the following "users" exist: | username | firstname | lastname | email | auth | confirmed | lastip | institution | department | profile_field_frog | profile_field_undead | | user1 | User | One | one@example.com | manual | 0 | 127.0.1.1 | moodle | red | Kermit | | | user2 | User | Two | two@example.com | ldap | 1 | 0.0.0.0 | moodle | blue | Mr Toad | Zombie | | user3 | User | Three | three@example.com | manual | 1 | 0.0.0.0 | | | | | | user4 | User | Four | four@example.com | ldap | 0 | 127.0.1.2 | | | | | And the following "cohorts" exist: | name | idnumber | | Cohort 1 | CH1 | And the following "cohort members" exist: | user | cohort | | user2 | CH1 | | user3 | CH1 | And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | And the following "course enrolments" exist: | user | course | role | | user1 | C1 | student | | user2 | C1 | student | | user3 | C1 | student | And I log in as "admin" And I navigate to "Users > Accounts > Browse list of users" in site administration Scenario: Filter user accounts by role and cohort When I set the following fields to these values: | courserole_rl | Student | | courserole_ct | any category | | courserole | C1 | And I press "Add filter" Then I should see "User One" And I should see "User Two" And I should see "User Three" And I should not see "User Four" And I set the following fields to these values: | cohort | CH1 | And I press "Add filter" And I should not see "User One" And I should see "User Two" And I should see "User Three" And I should not see "User Four" And I press "Remove all filters" And I should see "User One" And I should see "User Two" And I should see "User Three" And I should see "User Four" Scenario: Filter user accounts by confirm and authentication method When I set the following fields to these values: | Confirmed | No | And I press "Add filter" Then I should see "User One" And I should not see "User Two" And I should not see "User Three" And I should see "User Four" And I set the following fields to these values: | Authentication | manual | And I press "Add filter" And I should see "User One" And I should not see "User Two" And I should not see "User Three" And I should not see "User Four" Scenario: Filter user accounts by enrolled in any course When I set the following fields to these values: | id_anycourses | Yes | And I press "Add filter" Then I should see "User One" And I should see "User Two" And I should see "User Three" And I should not see "User Four" And I press "Remove all filters" And I set the following fields to these values: | id_anycourses | No | And I press "Add filter" And I should not see "User One" And I should not see "User Two" And I should not see "User Three" And I should see "User Four" Scenario: Filter user accounts by last IP address When I set the following fields to these values: | id_lastip | 127.0.1.1 | And I press "Add filter" Then I should see "User One" And I should not see "User Two" And I should not see "User Three" And I should not see "User Four" And I press "Remove all filters" And I set the following fields to these values: | id_lastip | 127.0.1.2 | And I press "Add filter" And I should not see "User One" And I should not see "User Two" And I should not see "User Three" And I should see "User Four" And I press "Remove all filters" And I should see "User One" And I should see "User Two" And I should see "User Three" And I should see "User Four" Scenario: Filter users by institution and department When I set the field "id_institution" to "moodle" And I press "Add filter" Then I should see "User One" And I should see "User Two" And I should not see "User Three" And I should not see "User Four" And I set the field "id_department" to "red" And I press "Add filter" And I should see "User One" And I should not see "User Two" Scenario: Filter users by custom profile field (specific or any) When I set the field "id_profile_fld" to "Favourite frog" And I set the field "id_profile" to "Kermit" And I press "Add filter" Then I should see "User One" And I should not see "User Two" And I should not see "User Three" And I should not see "User Four" And I press "Remove all filters" And I set the field "id_profile_fld" to "any field" And I set the field "id_profile" to "Zombie" And I press "Add filter" And I should see "User Two" And I should not see "User One" And I should not see "User Three" And I should not see "User Four"
Upload File
Create Folder