X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/group/tests/behat
home
/
cbholdings
/
pasukulu
/
group
/
tests
/
behat
/
📁
..
📄
auto_creation.feature
(8.5 KB)
📄
backup_restore_groups.feature
(2.75 KB)
📄
behat_groups.php
(3.66 KB)
📄
create_groups.feature
(6.98 KB)
📄
custom_fields.feature
(2.97 KB)
📄
delete_groups.feature
(3.31 KB)
📄
group_description_picture.feature
(5.84 KB)
📄
groups_import.feature
(6.2 KB)
📄
id_uniqueness.feature
(2.35 KB)
📄
overview.feature
(9.31 KB)
📄
private_groups.feature
(8.44 KB)
📄
role_visibility.feature
(2.32 KB)
📄
update_groups.feature
(7.11 KB)
Editing: role_visibility.feature
@core @core_group Feature: Test role visibility for the groups management page In order to control access As an admin I need to control which roles can see each other Background: Set up some groups Given the following "courses" exist: | fullname | shortname | | Course 1 | C1 | And the following "users" exist: | username | firstname | lastname | email | | learner1 | Learner | 1 | learner1@example.com | | teacher1 | Teacher | 1 | teacher1@example.com | | manager1 | Manager | 1 | manager1@example.com | And the following "course enrolments" exist: | user | course | role | | learner1 | C1 | student | | teacher1 | C1 | editingteacher | | manager1 | C1 | manager | And the following "groups" exist: | name | course | idnumber | | Group 1 | C1 | G1 | And the following "group members" exist: | user | group | | learner1 | G1 | | teacher1 | G1 | | manager1 | G1 | Scenario: Check the default roles are visible Given I log in as "manager1" And I am on the "Course 1" "groups" page When I set the field "groups" to "Group 1 (3)" And I press "Show members for group" Then "optgroup[label='No roles']" "css_element" should not exist in the "#members" "css_element" And "optgroup[label='Student']" "css_element" should exist in the "#members" "css_element" And "optgroup[label='Teacher']" "css_element" should exist in the "#members" "css_element" And "optgroup[label='Manager']" "css_element" should exist in the "#members" "css_element" And I log out Scenario: Do not allow managers to view any roles and check they are hidden Given I log in as "teacher1" And I am on the "Course 1" "groups" page When I set the field "groups" to "Group 1 (3)" And I press "Show members for group" Then "optgroup[label='No roles']" "css_element" should exist in the "#members" "css_element" And "optgroup[label='Student']" "css_element" should exist in the "#members" "css_element" And "optgroup[label='Teacher']" "css_element" should exist in the "#members" "css_element" And "optgroup[label='Manager']" "css_element" should not exist in the "#members" "css_element" And I log out
Upload File
Create Folder