X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/lib/tests/behat
home
/
cbholdings
/
pasukulu
/
lib
/
tests
/
behat
/
📁
..
📄
action_menu.feature
(1.11 KB)
📄
action_modal.feature
(2.06 KB)
📄
alpha_chooser.feature
(21.59 KB)
📄
behat_accessibility.php
(7.72 KB)
📄
behat_action_menu.php
(8.14 KB)
📄
behat_data_generators.php
(9.71 KB)
📄
behat_deprecated.php
(2.1 KB)
📄
behat_filters.php
(2.95 KB)
📄
behat_forms.php
(32.45 KB)
📄
behat_general.php
(97.03 KB)
📄
behat_hooks.php
(33.02 KB)
📄
behat_moodlenet.php
(2.03 KB)
📄
behat_navigation.php
(61.41 KB)
📄
behat_permissions.php
(12.62 KB)
📄
behat_transformations.php
(5.56 KB)
📄
datetime_any.feature
(4.24 KB)
📄
enabledashboard.feature
(846 B)
📄
expand_single_fieldset.feature
(697 B)
📄
largeforms.feature
(2.67 KB)
📄
locking.feature
(8.55 KB)
📄
min_max_version.feature
(1018 B)
📄
moodlenet_outbound.feature
(3.98 KB)
📄
permissionmanager.feature
(3.62 KB)
📄
readonlyform.feature
(1.7 KB)
📄
securelayout.feature
(1.68 KB)
📄
showuseridentity.feature
(4.26 KB)
📄
switch_editing_mode.feature
(2.72 KB)
📄
timezone.feature
(431 B)
📄
userfeedback.feature
(2.18 KB)
Editing: permissionmanager.feature
@core @javascript Feature: Override permissions on a context In order to extend and restrict moodle features As an admin or a teacher I need to allow/deny the existing capabilities at different levels Background: Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | t1@example.com | And the following "courses" exist: | fullname | shortname | enablecompletion | | Course 1 | C1 | 1 | And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | Scenario: Default system capabilities modification Given I am on the "C1" "permissions" page logged in as "admin" When I click on "Allow" "icon" in the "mod/forum:addnews" "table_row" And I press "Student" Then "Add announcementsmod/forum:addnews" row "Roles with permission" column of "permissions" table should contain "Student" When I reload the page And I click on "Delete Student role" "link" in the "mod/forum:addnews" "table_row" And I click on "Remove" "button" in the "Confirm role change" "dialogue" Then "Add announcementsmod/forum:addnews" row "Roles with permission" column of "permissions" table should not contain "Student" When I reload the page And I click on "Prohibit" "icon" in the "mod/forum:addnews" "table_row" And I press "Student" Then "Add announcementsmod/forum:addnews" row "Prohibited" column of "permissions" table should contain "Student" Scenario: Module capabilities overrides Given the following "activity" exists: | course | C1 | | activity | forum | | name | Forum 1 | And I am on the "Forum 1" "forum activity permissions" page logged in as admin When I click on "Allow" "icon" in the "mod/forum:addnews" "table_row" And I press "Student" Then "Add announcementsmod/forum:addnews" row "Roles with permission" column of "permissions" table should contain "Student" When I reload the page And I click on "Delete Student role" "link" in the "mod/forum:addnews" "table_row" And I click on "Remove" "button" in the "Confirm role change" "dialogue" Then "Add announcementsmod/forum:addnews" row "Roles with permission" column of "permissions" table should not contain "Student" When I reload the page And I click on "Prohibit" "icon" in the "mod/forum:addnews" "table_row" And I press "Student" Then "Add announcementsmod/forum:addnews" row "Prohibited" column of "permissions" table should contain "Student" Scenario: Dates, completion and description are not shown in permission and override pages Given the following "activity" exists: | course | C1 | | activity | feedback | | name | Test Feedback | | intro | Test feedback description | | completion | 1 | | timeopen | ##1 Jan 2040 08:00## | And I am on the "Test Feedback" "feedback activity" page logged in as teacher1 And I should see "Test feedback description" And "Mark as done" "button" should exist And I should see "1 January 2040" When I am on the "Test Feedback" "feedback activity permissions" page Then I should not see "Test feedback description" And "Mark as done" "button" should not exist And I should not see "1 January 2040" And I set the field "Advanced role override" to "Student" And I should not see "Test feedback description" And "Mark as done" "button" should not exist And I should not see "1 January 2040"
Upload File
Create Folder