Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@core @core_group
2
Feature: Group overview
3
  In order to view an overview of the groups
4
  As a teacher
5
  I need to visit the group overview page
6
 
7
  Background:
8
    Given the following "courses" exist:
9
      | fullname | shortname | category | groupmode |
10
      | Course 1 | C1        | 0        | 1         |
11
    And the following "users" exist:
12
      | username | firstname | lastname | email                |
13
      | teacher1 | Teacher   | 1        | teacher1@example.com |
14
      | student0 | Student   | 0        | student0@example.com |
15
      | student1 | Student   | 1        | student1@example.com |
16
      | student2 | Student   | 2        | student2@example.com |
17
      | student3 | Student   | 3        | student3@example.com |
18
      | student4 | Student   | 4        | student4@example.com |
19
      | student5 | Student   | 5        | student5@example.com |
20
      | student6 | Student   | 6        | student6@example.com |
21
      | student7 | Student   | 7        | student7@example.com |
22
    And the following "course enrolments" exist:
23
      | user     | course | role           |
24
      | teacher1 | C1     | editingteacher |
25
      | student0 | C1     | student        |
26
      | student1 | C1     | student        |
27
      | student2 | C1     | student        |
28
      | student3 | C1     | student        |
29
      | student4 | C1     | student        |
30
      | student5 | C1     | student        |
31
      | student6 | C1     | student        |
32
      | student7 | C1     | student        |
33
    And the following "groups" exist:
34
      | name    | course | idnumber |
35
      | Group 1 | C1     | G1       |
36
      | Group 2 | C1     | G2       |
37
      | Group 3 | C1     | G3       |
38
      | Group 4 | C1     | G4       |
39
    And the following "group members" exist:
40
      | user     | group |
41
      | student0 | G1    |
42
      | student1 | G1    |
43
      | student2 | G2    |
44
      | student3 | G3    |
45
      | student4 | G3    |
46
      | student5 | G4    |
47
    And the following "groupings" exist:
48
      | name       | course | idnumber |
49
      | Grouping 1 | C1     | GG1      |
50
      | Grouping 2 | C1     | GG2      |
51
    And the following "grouping groups" exist:
52
      | grouping | group |
53
      | GG1      | G1    |
54
      | GG1      | G2    |
55
      | GG2      | G2    |
56
      | GG2      | G3    |
57
 
58
  Scenario: Filter the overview in various different ways
59
    Given I am on the "Course 1" "groups overview" page logged in as "teacher1"
60
    # Grouping All and Group All filter
61
    When I select "All" from the "Grouping" singleselect
62
    And I select "All" from the "group" singleselect
63
    # Following groups should exist in groupings.
64
    Then the group overview should include groups "Group 1, Group 2" in grouping "Grouping 1"
65
    And the group overview should include groups "Group 2,Group 3" in grouping "Grouping 2"
66
    And the group overview should include groups "Group 4" in grouping "Not in a grouping"
67
    And the group overview should include groups "No group" in grouping "Not in a group"
68
    # Following members should exit in group.
69
    And "Student 0" "text" should exist in the "Group 1" "table_row"
70
    And "Student 1" "text" should exist in the "Group 1" "table_row"
71
    And "Student 2" "text" should exist in the "Group 2" "table_row"
72
    And "Student 3" "text" should exist in the "Group 3" "table_row"
73
    And "Student 4" "text" should exist in the "Group 3" "table_row"
74
    And "Student 5" "text" should exist in the "Group 4" "table_row"
75
    And "Student 6" "text" should exist in the "No group" "table_row"
76
    And "Student 7" "text" should exist in the "No group" "table_row"
77
 
78
    # Grouping 1 and Group All filter
79
    And I select "Grouping 1" from the "Grouping" singleselect
80
    And I select "All" from the "group" singleselect
81
    # Following groups should exist in groupings.
82
    And the group overview should include groups "Group 1, Group 2" in grouping "Grouping 1"
83
    # Following groups should not exits
84
    And "Group 3" "table_row" should not exist
85
    And "No group" "table_row" should not exist
86
    # Following members should exit in group.
87
    And "Student 0" "text" should exist in the "Group 1" "table_row"
88
    And "Student 1" "text" should exist in the "Group 1" "table_row"
89
    And "Student 2" "text" should exist in the "Group 2" "table_row"
90
    # Following members should not exit in group.
91
    And I should not see "Student 3"
92
    And I should not see "Student 4"
93
    And I should not see "Student 5"
94
    And I should not see "Student 6"
95
    And I should not see "Student 7"
96
 
97
    # Grouping 2 and Group All filter
98
    And I select "Grouping 2" from the "Grouping" singleselect
99
    And I select "All" from the "group" singleselect
100
    # Following groups should exist in groupings.
101
    And the group overview should include groups "Group 2, Group 3" in grouping "Grouping 2"
102
    # Following groups should not exits
103
    And "Group 1" "table_row" should not exist
104
    And "No group" "table_row" should not exist
105
    # Following members should exit in group.
106
    And "Student 2" "text" should exist in the "Group 2" "table_row"
107
    And "Student 3" "text" should exist in the "Group 3" "table_row"
108
    And "Student 4" "text" should exist in the "Group 3" "table_row"
109
    # Following members should not exit in group.
110
    And I should not see "Student 0"
111
    And I should not see "Student 1"
112
    And I should not see "Student 5"
113
    And I should not see "Student 6"
114
    And I should not see "Student 7"
115
 
116
    # No grouping and Group All filter
117
    And I select "No grouping" from the "Grouping" singleselect
118
    And I select "All" from the "group" singleselect
119
    # Following groups should exist in groupings.
120
    And the group overview should include groups "Group 4" in grouping "Not in a grouping"
121
    And the group overview should include groups "No group" in grouping "Not in a group"
122
    # Following groups should not exits
123
    And "Group 1" "table_row" should not exist
124
    And "Group 2" "table_row" should not exist
125
    And "Group 3" "table_row" should not exist
126
    # Following members should exit in group.
127
    And "Student 5" "text" should exist in the "Group 4" "table_row"
128
    And "Student 6" "text" should exist in the "No group" "table_row"
129
    And "Student 7" "text" should exist in the "No group" "table_row"
130
    # Following members should not exit in group.
131
    And I should not see "Student 0"
132
    And I should not see "Student 1"
133
    And I should not see "Student 2"
134
    And I should not see "Student 3"
135
    And I should not see "Student 4"
136
 
137
    # Grouping All and Group 1 filter
138
    And I select "All" from the "Grouping" singleselect
139
    And I select "Group 1" from the "group" singleselect
140
    # Following groups should exist in groupings.
141
    And the group overview should include groups "Group 1" in grouping "Grouping 1"
142
    # Following groups should not exits
143
    And "Group 2" "table_row" should not exist
144
    And "Group 3" "table_row" should not exist
145
    And "Group 4" "table_row" should not exist
146
    And "No group" "table_row" should not exist
147
    # Following members should exit in group.
148
    And "Student 0" "text" should exist in the "Group 1" "table_row"
149
    And "Student 1" "text" should exist in the "Group 1" "table_row"
150
    # Following members should not exit in group.
151
    And I should not see "Student 2"
152
    And I should not see "Student 3"
153
    And I should not see "Student 4"
154
    And I should not see "Student 5"
155
    And I should not see "Student 6"
156
    And I should not see "Student 7"
157
 
158
    # Grouping All and Group 2 filter
159
    And I select "All" from the "Grouping" singleselect
160
    And I select "Group 2" from the "group" singleselect
161
    # Following groups should exist in groupings.
162
    And the group overview should include groups "Group 2" in grouping "Grouping 1"
163
    And the group overview should include groups "Group 2" in grouping "Grouping 2"
164
    # Following groups should not exits
165
    And "Group 1" "table_row" should not exist
166
    And "Group 3" "table_row" should not exist
167
    And "Group 4" "table_row" should not exist
168
    And "No group" "table_row" should not exist
169
    # Following members should exit in group.
170
    And "Student 2" "text" should exist in the "Group 2" "table_row"
171
    # Following members should not exit in group.
172
    And I should not see "Student 0"
173
    And I should not see "Student 1"
174
    And I should not see "Student 3"
175
    And I should not see "Student 4"
176
    And I should not see "Student 5"
177
    And I should not see "Student 6"
178
    And I should not see "Student 7"
179
 
180
    # Grouping All and No group filter
181
    And I select "All" from the "Grouping" singleselect
182
    And I select "No group" from the "group" singleselect
183
    # Following groups should exist in groupings.
184
    And the group overview should include groups "No group" in grouping "Not in a group"
185
    # Following groups should not exits
186
    And "Group 1" "table_row" should not exist
187
    And "Group 2" "table_row" should not exist
188
    And "Group 3" "table_row" should not exist
189
    And "Group 4" "table_row" should not exist
190
    # Following members should exit in group.
191
    And "Student 6" "text" should exist in the "No group" "table_row"
192
    And "Student 7" "text" should exist in the "No group" "table_row"
193
    # Following members should not exit in group.
194
    And I should not see "Student 0"
195
    And I should not see "Student 1"
196
    And I should not see "Student 2"
197
    And I should not see "Student 3"
198
    And I should not see "Student 4"
199
    And I should not see "Student 5"