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: check.feature
@core @core_admin Feature: Staff can check user permissions In order to find out whether a user can or can't do something As an admin I can check their permissions in a particular context Background: Given the following "custom profile fields" exist: | datatype | shortname | name | | text | frog | Favourite frog | And the following config values are set as admin: | showuseridentity | email,profile_field_frog | And the following "users" exist: | username | firstname | lastname | email | profile_field_frog | | user1 | User | One | one@example.com | Kermit | | user2 | User | Two | two@example.com | Tree | | user3 | User | Three | thr@example.com | Kermit | And the following "courses" exist: | shortname | fullname | | C1 | Course 1 | | C2 | Course 2 | And the following "course enrolments" exist: | user | course | role | | user1 | C1 | editingteacher | | user2 | C1 | editingteacher | | user3 | C2 | editingteacher | @javascript Scenario: Search for a user (enrolled on the course) by custom field and select them to see permissions When I am on the "C1" "permissions" page logged in as "admin" And I select "Check permissions" from the "jump" singleselect And I set the field "Search" to "Kermit" # The Behat 'I should see' step doesn't work for optgroup labels. Then "optgroup[label='Matching enrolled users (1)']" "css_element" should exist And I should see "User One (one@example.com, Kermit)" And I should not see "User Two" And I set the field "reportuser" to "User One (one@example.com, Kermit)" And I press "Show this user's permissions" And I should see "Permissions for user User One" And I should see "Yes" in the "Add a new forum" "table_row" @javascript Scenario: Search for a user (not enrolled on the course) by custom field and select them to see permissions When I am on the "C1" "permissions" page logged in as "admin" And I select "Check permissions" from the "jump" singleselect And I set the field "Search" to "Kermit" # The Behat 'I should see' step doesn't work for optgroup labels. Then "optgroup[label*='Potential users matching'][label*=' (1)']" "css_element" should exist And I should see "User Three (thr@example.com, Kermit)" And I should not see "User Two" And I set the field "reportuser" to "User Three (thr@example.com, Kermit)" And I press "Show this user's permissions" Then I should see "Permissions for user User Three" And I should see "No" in the "Add a new forum" "table_row"
Upload File
Create Folder