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: private_groups.feature
@core @core_group Feature: Private groups As a teacher In order to organise students into groups while protecting their privacy I want to define groups that are not visible to all students Background: Given the following "courses" exist: | fullname | shortname | format | enablecompletion | numsections | | Course 1 | C1 | topics | 1 | 3 | And the following "users" exist: | username | firstname | lastname | | teacher1 | Teacher | Teacher | | student1 | Student | 1 | | student2 | Student | 2 | | student3 | Student | 3 | | student4 | Student | 4 | | student5 | Student | 5 | | student6 | Student | 6 | | student7 | Student | 7 | | student8 | Student | 8 | And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | | student2 | C1 | student | | student3 | C1 | student | | student4 | C1 | student | | student5 | C1 | student | | student6 | C1 | student | | student7 | C1 | student | | student8 | C1 | student | And the following "groups" exist: | name | course | idnumber | visibility | participation | | Visible to everyone/Participation | C1 | VP | 0 | 1 | | Only visible to members/Participation | C1 | MP | 1 | 1 | | Only see own membership | C1 | O | 2 | 0 | | Not visible | C1 | N | 3 | 0 | | Visible to everyone/Non-Participation | C1 | VN | 0 | 0 | | Only visible to members/Non-Participation | C1 | MN | 1 | 0 | And the following "group members" exist: | user | group | | student1 | VP | | student1 | VN | | student2 | MP | | student2 | MN | | student3 | O | | student4 | N | | student5 | VP | | student5 | VN | | student6 | MP | | student6 | MN | | student7 | O | | student8 | N | Scenario: Participants in "Visible to everyone" groups see their membership and other members: Given I log in as "student1" And I am on "Course 1" course homepage When I follow "Participants" Then the following should exist in the "participants" table: | First name / Surname | Groups | | Student 1 | Visible to everyone/Non-Participation, Visible to everyone/Participation | | Student 2 | No groups | | Student 3 | No groups | | Student 4 | No groups | | Student 5 | Visible to everyone/Non-Participation, Visible to everyone/Participation | | Student 6 | No groups | | Student 7 | No groups | | Student 8 | No groups | Scenario: Participants in "Only visible to members" groups see their membership and other members, plus "Visible to everyone" Given I log in as "student2" And I am on "Course 1" course homepage When I follow "Participants" Then the following should exist in the "participants" table: | First name / Surname | Groups | | Student 1 | Visible to everyone/Non-Participation, Visible to everyone/Participation | | Student 2 | Only visible to members/Non-Participation, Only visible to members/Participation | | Student 3 | No groups | | Student 4 | No groups | | Student 5 | Visible to everyone/Non-Participation, Visible to everyone/Participation | | Student 6 | Only visible to members/Non-Participation, Only visible to members/Participation | | Student 7 | No groups | | Student 8 | No groups | Scenario: Participants in "Only see own membership" groups see their membership but not other members, plus "Visible to everyone" Given I log in as "student3" And I am on "Course 1" course homepage When I follow "Participants" Then the following should exist in the "participants" table: | First name / Surname | Groups | | Student 1 | Visible to everyone/Non-Participation, Visible to everyone/Participation | | Student 2 | No groups | | Student 3 | Only see own membership | | Student 4 | No groups | | Student 5 | Visible to everyone/Non-Participation, Visible to everyone/Participation | | Student 6 | No groups | | Student 7 | No groups | | Student 8 | No groups | Scenario: Participants in "Not visible" groups do not see that group, do see "Visible to everyone" Given I log in as "student4" And I am on "Course 1" course homepage When I follow "Participants" Then the following should exist in the "participants" table: | First name / Surname | Groups | | Student 1 | Visible to everyone/Non-Participation, Visible to everyone/Participation | | Student 2 | No groups | | Student 3 | No groups | | Student 4 | No groups | | Student 5 | Visible to everyone/Non-Participation, Visible to everyone/Participation | | Student 6 | No groups | | Student 7 | No groups | | Student 8 | No groups | Scenario: View participants list as a teacher: Given I log in as "teacher1" And I am on "Course 1" course homepage When I follow "Participants" Then the following should exist in the "participants" table: | First name / Surname | Groups | | Student 1 | Visible to everyone/Non-Participation, Visible to everyone/Participation | | Student 2 | Only visible to members/Non-Participation, Only visible to members/Participation | | Student 3 | Only see own membership | | Student 4 | Not visible | | Student 5 | Visible to everyone/Non-Participation, Visible to everyone/Participation | | Student 6 | Only visible to members/Non-Participation, Only visible to members/Participation | | Student 7 | Only see own membership | | Student 8 | Not visible |
Upload File
Create Folder