Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
@gradereport @gradereport_singleview
2
Feature: We don't show hidden grades for users without the 'moodle/grade:viewhidden' capability on singleview report
3
  In order to show singleview report in secure way
4
  As a teacher without the 'moodle/grade:viewhidden' capability
5
  I should not see hidden grades in the singleview report
6
 
7
  Background:
8
    Given the following "courses" exist:
9
      | fullname | shortname | format |
10
      | Course 1 | C1        | topics |
11
    And the following "users" exist:
12
      | username | firstname | lastname | email                |
13
      | teacher1 | Teacher   | 1        | teacher1@example.com |
14
      | student1 | Student1  | 1        | student1@example.com |
15
      | student2 | Student2  | 2        | student2@example.com |
16
    And the following "course enrolments" exist:
17
      | user     | course | role           |
18
      | teacher1 | C1     | editingteacher |
19
      | student1 | C1     | student        |
20
      | student2 | C1     | student        |
21
    And the following "activities" exist:
22
      | activity | course | section | name                   | intro                   | assignsubmission_onlinetext_enabled | submissiondrafts |
23
      | assign   | C1     | 1       | Test assignment name 1 | Submit your online text | 1                                   | 0                |
24
      | assign   | C1     | 1       | Test assignment name 2 | submit your online text | 1                                   | 0                |
25
      | assign   | C1     | 1       | Test assignment name 3 | submit your online text | 1                                   | 0                |
26
    # Hidden manual grade item.
27
    And the following "grade items" exist:
28
      | itemname     | grademin | grademax | course | hidden |
29
      | Manual grade | 20       | 40       | C1     | 1      |
30
    And the following "grade grades" exist:
31
      | gradeitem              | user     | grade |
32
      | Test assignment name 1 | student1 | 80    |
33
      | Test assignment name 1 | student2 | 70    |
34
      | Test assignment name 2 | student1 | 90    |
35
      | Test assignment name 2 | student2 | 60    |
36
      | Test assignment name 3 | student1 | 10    |
37
      | Test assignment name 3 | student2 | 50    |
38
      | Manual grade           | student1 | 30    |
39
      | Manual grade           | student2 | 40    |
40
    And I log in as "admin"
41
    And I am on "Course 1" course homepage with editing mode on
42
    # Hide assignment 2 activity.
43
    And I open "Test assignment name 2" actions menu
44
    And I choose "Hide" in the open action menu
45
    And I navigate to "View > Grader report" in the course gradebook
46
    # Hide grade.
47
    And I click on grade menu "Test assignment name 1" for user "student1"
48
    And I choose "Hide" in the open action menu
49
    # Hide assignment 3 grade item.
50
    And I set the following settings for grade item "Test assignment name 3" of type "gradeitem" on "grader" page:
51
      | Hidden          | 1 |
52
 
53
  @javascript
54
  Scenario: View singleview report containing hidden activities or grade items or grades with editing on and required capabilities
55
    Given I log in as "teacher1"
56
    And I am on "Course 1" course homepage with editing mode on
57
    And I navigate to "View > Single view" in the course gradebook
58
    And I click on "Users" "link" in the ".page-toggler" "css_element"
59
 
60
    When I click on "Student1" in the "Search users" search combo box
61
    And the field "Grade for Test assignment name 1" matches value "80"
62
    And the field "Grade for Test assignment name 2" matches value "90"
63
    And the field "Grade for Test assignment name 3" matches value "10"
64
    And the field "Grade for Manual grade" matches value "30"
65
    And the field "Grade for Course total" matches value "210"
66
 
67
    And "Hidden" "icon" should exist in the "Test assignment name 1" "table_row"
68
    And "Hidden" "icon" should exist in the "Test assignment name 2" "table_row"
69
    And "Hidden" "icon" should exist in the "Test assignment name 3" "table_row"
70
    And "Hidden" "icon" should exist in the "Manual grade" "table_row"
71
    And "Hidden" "icon" should not exist in the "Course total" "table_row"
72
 
73
    And the field "Feedback for Test assignment name 1" matches value ""
74
    And the field "Feedback for Test assignment name 2" matches value ""
75
    And the field "Feedback for Test assignment name 3" matches value ""
76
    And the field "Feedback for Manual grade" matches value ""
77
    And the field "Feedback for Course total" matches value ""
78
 
79
    And "Override for Test assignment name 1" "checkbox" should exist in the "Test assignment name 1" "table_row"
80
    And "Override for Test assignment name 2" "checkbox" should exist in the "Test assignment name 2" "table_row"
81
    And "Override for Test assignment name 3" "checkbox" should exist in the "Test assignment name 3" "table_row"
82
    And "Override for Manual grade" "checkbox" should not exist in the "Manual grade" "table_row"
83
    And "Override for Course total" "checkbox" should exist in the "Course total" "table_row"
84
 
85
    And "Exclude for Test assignment name 1" "checkbox" should exist in the "Test assignment name 1" "table_row"
86
    And "Exclude for Test assignment name 2" "checkbox" should exist in the "Test assignment name 2" "table_row"
87
    And "Exclude for Test assignment name 3" "checkbox" should exist in the "Test assignment name 3" "table_row"
88
    And "Exclude for Manual grade" "checkbox" should exist in the "Manual grade" "table_row"
89
    And "Exclude for Course total" "checkbox" should exist in the "Course total" "table_row"
90
 
91
    And I click on "Student2" in the "Search users" search combo box
92
    And the field "Grade for Test assignment name 1" matches value "70"
93
    And the field "Grade for Test assignment name 2" matches value "60"
94
    And the field "Grade for Test assignment name 3" matches value "50"
95
    And the field "Grade for Manual grade" matches value "40"
96
    And the field "Grade for Course total" matches value "220"
97
 
98
    And "Hidden" "icon" should not exist in the "Test assignment name 1" "table_row"
99
    And "Hidden" "icon" should exist in the "Test assignment name 2" "table_row"
100
    And "Hidden" "icon" should exist in the "Test assignment name 3" "table_row"
101
    And "Hidden" "icon" should exist in the "Manual grade" "table_row"
102
    And "Hidden" "icon" should not exist in the "Course total" "table_row"
103
 
104
    And the field "Feedback for Test assignment name 1" matches value ""
105
    And the field "Feedback for Test assignment name 2" matches value ""
106
    And the field "Feedback for Test assignment name 3" matches value ""
107
    And the field "Feedback for Manual grade" matches value ""
108
    And the field "Feedback for Course total" matches value ""
109
 
110
    And "Override for Test assignment name 1" "checkbox" should exist in the "Test assignment name 1" "table_row"
111
    And "Override for Test assignment name 2" "checkbox" should exist in the "Test assignment name 2" "table_row"
112
    And "Override for Test assignment name 3" "checkbox" should exist in the "Test assignment name 3" "table_row"
113
    And "Override for Manual grade" "checkbox" should not exist in the "Manual grade" "table_row"
114
    And "Override for Course total" "checkbox" should exist in the "Course total" "table_row"
115
 
116
    And "Exclude for Test assignment name 1" "checkbox" should exist in the "Test assignment name 1" "table_row"
117
    And "Exclude for Test assignment name 2" "checkbox" should exist in the "Test assignment name 2" "table_row"
118
    And "Exclude for Test assignment name 3" "checkbox" should exist in the "Test assignment name 3" "table_row"
119
    And "Exclude for Manual grade" "checkbox" should exist in the "Manual grade" "table_row"
120
    And "Exclude for Course total" "checkbox" should exist in the "Course total" "table_row"
121
 
122
    And I click on "Grade items" "link" in the ".page-toggler" "css_element"
123
    And I click on "Test assignment name 1" in the "Search items" search combo box
124
    And the field "Grade for Student1 1" matches value "80"
125
    And the field "Grade for Student2 2" matches value "70"
126
    And "Hidden" "icon" should exist in the "Student1 1" "table_row"
127
    And "Hidden" "icon" should not exist in the "Student2 2" "table_row"
128
    And the field "Feedback for Student1 1" matches value ""
129
    And the field "Feedback for Student2 2" matches value ""
130
    And "Override for Student1 1" "checkbox" should exist in the "Student1 1" "table_row"
131
    And "Override for Student2 2" "checkbox" should exist in the "Student2 2" "table_row"
132
    And "Exclude for Student1 1" "checkbox" should exist in the "Student1 1" "table_row"
133
    And "Exclude for Student2 2" "checkbox" should exist in the "Student2 2" "table_row"
134
 
135
    And I click on "Test assignment name 2" in the "Search items" search combo box
136
    And the field "Grade for Student1 1" matches value "90"
137
    And the field "Grade for Student2 2" matches value "60"
138
    And "Hidden" "icon" should exist in the "Student1 1" "table_row"
139
    And "Hidden" "icon" should exist in the "Student2 2" "table_row"
140
    And the field "Feedback for Student1 1" matches value ""
141
    And the field "Feedback for Student2 2" matches value ""
142
    And "Override for Student1 1" "checkbox" should exist in the "Student1 1" "table_row"
143
    And "Override for Student2 2" "checkbox" should exist in the "Student2 2" "table_row"
144
    And "Exclude for Student1 1" "checkbox" should exist in the "Student1 1" "table_row"
145
    And "Exclude for Student2 2" "checkbox" should exist in the "Student2 2" "table_row"
146
 
147
    And I click on "Test assignment name 3" in the "Search items" search combo box
148
    And the field "Grade for Student1 1" matches value "10"
149
    And the field "Grade for Student2 2" matches value "50"
150
    And "Hidden" "icon" should exist in the "Student1 1" "table_row"
151
    And "Hidden" "icon" should exist in the "Student2 2" "table_row"
152
    And the field "Feedback for Student1 1" matches value ""
153
    And the field "Feedback for Student2 2" matches value ""
154
    And "Exclude for Student1 1" "checkbox" should exist in the "Student1 1" "table_row"
155
    And "Exclude for Student2 2" "checkbox" should exist in the "Student2 2" "table_row"
156
    And "Override for Student1 1" "checkbox" should exist in the "Student1 1" "table_row"
157
    And "Override for Student2 2" "checkbox" should exist in the "Student2 2" "table_row"
158
 
159
    And I click on "Manual grade" in the "Search items" search combo box
160
    And the field "Grade for Student1 1" matches value "30"
161
    And the field "Grade for Student2 2" matches value "40"
162
    And "Hidden" "icon" should exist in the "Student1 1" "table_row"
163
    And "Hidden" "icon" should exist in the "Student2 2" "table_row"
164
    And the field "Feedback for Student1 1" matches value ""
165
    And the field "Feedback for Student2 2" matches value ""
166
    And "Override for Student1 1" "checkbox" should not exist in the "Student1 1" "table_row"
167
    And "Override for Student2 2" "checkbox" should not exist in the "Student2 2" "table_row"
168
    And "Exclude for Student1 1" "checkbox" should exist in the "Student1 1" "table_row"
169
    And "Exclude for Student2 2" "checkbox" should exist in the "Student2 2" "table_row"
170
 
171
    And I click on "Course total" in the "Search items" search combo box
172
    And the field "Grade for Student1 1" matches value "210"
173
    And the field "Grade for Student2 2" matches value "220"
174
    And "Hidden" "icon" should not exist in the "Student1 1" "table_row"
175
    And "Hidden" "icon" should not exist in the "Student2 2" "table_row"
176
    And the field "Feedback for Student1 1" matches value ""
177
    And the field "Feedback for Student2 2" matches value ""
178
    And "Override for Student1 1" "checkbox" should exist in the "Student1 1" "table_row"
179
    And "Override for Student2 2" "checkbox" should exist in the "Student2 2" "table_row"
180
    And "Exclude for Student1 1" "checkbox" should exist in the "Student1 1" "table_row"
181
    Then "Exclude for Student2 2" "checkbox" should exist in the "Student2 2" "table_row"
182
 
183
  @javascript
184
  Scenario: View singleview report containing hidden activities or grade items or grades with editing off and required capabilities
185
    Given I log in as "teacher1"
186
    And I am on "Course 1" course homepage with editing mode off
187
    And I navigate to "View > Single view" in the course gradebook
188
    And I click on "Grade items" "link" in the ".page-toggler" "css_element"
189
    And I click on "Course total" in the "Search items" search combo box
190
    And the following should exist in the "generaltable" table:
191
      | User full name | Grade     |
192
      | Student1 1     | 210       |
193
      | Student2 2     | 220       |
194
    And "Hidden" "icon" should not exist in the "Student1 1" "table_row"
195
    And "Hidden" "icon" should not exist in the "Student2 2" "table_row"
196
 
197
    When I click on "Manual grade" in the "Search items" search combo box
198
    And the following should exist in the "generaltable" table:
199
      | User full name | Grade     |
200
      | Student1 1     | 30        |
201
      | Student2 2     | 40        |
202
    And "Hidden" "icon" should exist in the "Student1 1" "table_row"
203
    And "Hidden" "icon" should exist in the "Student2 2" "table_row"
204
 
205
    And I click on "Test assignment name 3" in the "Search items" search combo box
206
    And the following should exist in the "generaltable" table:
207
      | User full name | Grade     |
208
      | Student1 1     | 10        |
209
      | Student2 2     | 50        |
210
    And "Hidden" "icon" should exist in the "Student1 1" "table_row"
211
    And "Hidden" "icon" should exist in the "Student2 2" "table_row"
212
 
213
    And I click on "Test assignment name 2" in the "Search items" search combo box
214
    And the following should exist in the "generaltable" table:
215
      | User full name | Grade     |
216
      | Student1 1     | 90        |
217
      | Student2 2     | 60        |
218
    And "Hidden" "icon" should exist in the "Student1 1" "table_row"
219
    And "Hidden" "icon" should exist in the "Student2 2" "table_row"
220
 
221
    And I click on "Test assignment name 1" in the "Search items" search combo box
222
    And the following should exist in the "generaltable" table:
223
      | User full name | Grade     |
224
      | Student1 1     | 80        |
225
      | Student2 2     | 70        |
226
    And "Hidden" "icon" should exist in the "Student1 1" "table_row"
227
    And "Hidden" "icon" should not exist in the "Student2 2" "table_row"
228
 
229
    And I click on "Users" "link" in the ".page-toggler" "css_element"
230
    And I click on "Student1" in the "Search users" search combo box
231
    And the following should exist in the "generaltable" table:
232
      | Grade item                 | Grade     |
233
      | Test assignment name 1     | 80        |
234
      | Test assignment name 2     | 90        |
235
      | Test assignment name 3     | 10        |
236
      | Manual grade               | 30        |
237
      | Course total               | 210       |
238
    And "Hidden" "icon" should exist in the "Test assignment name 1" "table_row"
239
    And "Hidden" "icon" should exist in the "Test assignment name 2" "table_row"
240
    And "Hidden" "icon" should exist in the "Test assignment name 3" "table_row"
241
    And "Hidden" "icon" should exist in the "Manual grade" "table_row"
242
    And "Hidden" "icon" should not exist in the "Course total" "table_row"
243
 
244
    And I click on "Student2" in the "Search users" search combo box
245
    And the following should exist in the "generaltable" table:
246
      | Grade item                 | Grade     |
247
      | Test assignment name 1     | 70        |
248
      | Test assignment name 2     | 60        |
249
      | Test assignment name 3     | 50        |
250
      | Manual grade               | 40        |
251
      | Course total               | 220       |
252
    And "Hidden" "icon" should not exist in the "Test assignment name 1" "table_row"
253
    And "Hidden" "icon" should exist in the "Test assignment name 2" "table_row"
254
    And "Hidden" "icon" should exist in the "Test assignment name 3" "table_row"
255
    And "Hidden" "icon" should exist in the "Manual grade" "table_row"
256
    Then "Hidden" "icon" should not exist in the "Course total" "table_row"
257
 
258
  @javascript
259
  Scenario: View singleview report containing hidden activities or grade items or grades with editing off without required capabilities
260
    Given I log in as "teacher1"
261
    And the following "role capability" exists:
262
      | role                    | editingteacher  |
263
      | moodle/grade:viewhidden | prohibit        |
264
    And I am on "Course 1" course homepage with editing mode off
265
    And I navigate to "View > Single view" in the course gradebook
266
    When I click on "Users" "link" in the ".page-toggler" "css_element"
267
    And I click on "Student2" in the "Search users" search combo box
268
    And the following should exist in the "generaltable" table:
269
    # Total is weird!!!!!!!!!!!!!!.
270
      | Grade item                 | Grade     |
271
      | Test assignment name 1     | 70        |
272
      | Test assignment name 2     |           |
273
      | Test assignment name 3     |           |
274
      | Manual grade               |           |
275
      | Course total               | 220       |
276
    And "Hidden" "icon" should not exist in the "Test assignment name 1" "table_row"
277
    And "Hidden" "icon" should not exist in the "Test assignment name 2" "table_row"
278
    And "Hidden" "icon" should not exist in the "Test assignment name 3" "table_row"
279
    And "Hidden" "icon" should not exist in the "Manual grade" "table_row"
280
    And "Hidden" "icon" should not exist in the "Course total" "table_row"
281
 
282
    And I click on "Student1" in the "Search users" search combo box
283
    And the following should exist in the "generaltable" table:
284
      | Grade item                 | Grade     |
285
      | Test assignment name 1     |           |
286
      | Test assignment name 2     |           |
287
      | Test assignment name 3     |           |
288
      | Manual grade               |           |
289
      | Course total               | 210       |
290
    And "Hidden" "icon" should not exist in the "Test assignment name 1" "table_row"
291
    And "Hidden" "icon" should not exist in the "Test assignment name 2" "table_row"
292
    And "Hidden" "icon" should not exist in the "Test assignment name 3" "table_row"
293
    And "Hidden" "icon" should not exist in the "Manual grade" "table_row"
294
    And "Hidden" "icon" should not exist in the "Course total" "table_row"
295
 
296
    And I click on "Grade items" "link" in the ".page-toggler" "css_element"
297
    And I click on "Test assignment name 1" in the "Search items" search combo box
298
    And the following should exist in the "generaltable" table:
299
      | User full name | Grade     |
300
      | Student1 1     |           |
301
      | Student2 2     | 70        |
302
    And "Hidden" "icon" should not exist in the "Student1 1" "table_row"
303
    And "Hidden" "icon" should not exist in the "Student2 2" "table_row"
304
 
305
    And I click on "Test assignment name 2" in the "Search items" search combo box
306
    And the following should exist in the "generaltable" table:
307
      | User full name | Grade     |
308
      | Student1 1     |           |
309
      | Student2 2     |           |
310
    And "Hidden" "icon" should not exist in the "Student1 1" "table_row"
311
    And "Hidden" "icon" should not exist in the "Student2 2" "table_row"
312
 
313
    And I click on "Test assignment name 3" in the "Search items" search combo box
314
    And the following should exist in the "generaltable" table:
315
      | User full name | Grade     |
316
      | Student1 1     |           |
317
      | Student2 2     |           |
318
    And "Hidden" "icon" should not exist in the "Student1 1" "table_row"
319
    And "Hidden" "icon" should not exist in the "Student2 2" "table_row"
320
 
321
    And I click on "Manual grade" in the "Search items" search combo box
322
    And the following should exist in the "generaltable" table:
323
      | User full name | Grade     |
324
      | Student1 1     |           |
325
      | Student2 2     |           |
326
    And "Hidden" "icon" should not exist in the "Student1 1" "table_row"
327
    And "Hidden" "icon" should not exist in the "Student2 2" "table_row"
328
 
329
    And I click on "Course total" in the "Search items" search combo box
330
    And the following should exist in the "generaltable" table:
331
      | User full name | Grade        |
332
      | Student1 1     | 210          |
333
      | Student2 2     | 220          |
334
    And "Hidden" "icon" should not exist in the "Student1 1" "table_row"
335
    Then "Hidden" "icon" should not exist in the "Student2 2" "table_row"
336
 
337
  @javascript
338
  Scenario: View singleview report containing hidden activities or grade items or grades with editing on without required capabilities
339
    Given I log in as "teacher1"
340
    And the following "role capability" exists:
341
      | role                    | editingteacher  |
342
      | moodle/grade:viewhidden | prohibit        |
343
    And I am on "Course 1" course homepage with editing mode on
344
    And I navigate to "View > Single view" in the course gradebook
345
    And I click on "Grade items" "link" in the ".page-toggler" "css_element"
346
    And I click on "Course total" in the "Search items" search combo box
347
    And the field "Grade for Student1 1" matches value "210"
348
    And the field "Grade for Student2 2" matches value "220"
349
    And "Hidden" "icon" should not exist in the "Student1 1" "table_row"
350
    And "Hidden" "icon" should not exist in the "Student2 2" "table_row"
351
    And the field "Feedback for Student1 1" matches value ""
352
    And the field "Feedback for Student2 2" matches value ""
353
    And "Override for Student1 1" "checkbox" should exist in the "Student1 1" "table_row"
354
    And "Override for Student2 2" "checkbox" should exist in the "Student2 2" "table_row"
355
    And "Exclude for Student1 1" "checkbox" should exist in the "Student1 1" "table_row"
356
    And "Exclude for Student2 2" "checkbox" should exist in the "Student2 2" "table_row"
357
 
358
    When I click on "Manual grade" in the "Search items" search combo box
359
    And the following should exist in the "generaltable" table:
360
      | User full name | Grade     |
361
      | Student1 1     |           |
362
      | Student2 2     |           |
363
    And "Hidden" "icon" should not exist in the "Student1 1" "table_row"
364
    And "Hidden" "icon" should not exist in the "Student2 2" "table_row"
365
 
366
    And I click on "Test assignment name 3" in the "Search items" search combo box
367
    And the following should exist in the "generaltable" table:
368
      | User full name | Grade     |
369
      | Student1 1     |           |
370
      | Student2 2     |           |
371
    And "Hidden" "icon" should not exist in the "Student1 1" "table_row"
372
    And "Hidden" "icon" should not exist in the "Student2 2" "table_row"
373
 
374
    And I click on "Test assignment name 2" in the "Search items" search combo box
375
    And the following should exist in the "generaltable" table:
376
      | User full name | Grade     |
377
      | Student1 1     |           |
378
      | Student2 2     |           |
379
    And "Hidden" "icon" should not exist in the "Student1 1" "table_row"
380
    And "Hidden" "icon" should not exist in the "Student2 2" "table_row"
381
 
382
    And I click on "Test assignment name 1" in the "Search items" search combo box
383
    And the following should exist in the "generaltable" table:
384
      | User full name | Grade     |
385
      | Student1 1     |           |
386
    And "Hidden" "icon" should not exist in the "Student1 1" "table_row"
387
    And the field "Grade for Student2 2" matches value "70"
388
    And "Hidden" "icon" should not exist in the "Student2 2" "table_row"
389
    And the field "Feedback for Student2 2" matches value ""
390
    And "Override for Student2 2" "checkbox" should exist in the "Student2 2" "table_row"
391
    And "Exclude for Student2 2" "checkbox" should exist in the "Student2 2" "table_row"
392
 
393
    And I click on "Users" "link" in the ".page-toggler" "css_element"
394
    And I click on "Student1" in the "Search users" search combo box
395
    And the following should exist in the "generaltable" table:
396
      | Grade item                 | Grade     | Feedback |
397
      | Test assignment name 1     |           |          |
398
      | Test assignment name 2     |           |          |
399
      | Test assignment name 3     |           |          |
400
      | Manual grade               |           |          |
401
    And "Hidden" "icon" should not exist in the "Test assignment name 1" "table_row"
402
    And "Hidden" "icon" should not exist in the "Test assignment name 2" "table_row"
403
    And "Hidden" "icon" should not exist in the "Test assignment name 3" "table_row"
404
    And "Hidden" "icon" should not exist in the "Manual grade" "table_row"
405
    And "Hidden" "icon" should not exist in the "Course total" "table_row"
406
    And "Override for Test assignment name 1" "checkbox" should not exist in the "Test assignment name 1" "table_row"
407
    And "Exclude for Test assignment name 1" "checkbox" should not exist in the "Test assignment name 1" "table_row"
408
    And "Override for Test assignment name 2" "checkbox" should not exist in the "Test assignment name 2" "table_row"
409
    And "Exclude for Test assignment name 2" "checkbox" should not exist in the "Test assignment name 2" "table_row"
410
    And "Override for Test assignment name 3" "checkbox" should not exist in the "Test assignment name 3" "table_row"
411
    And "Exclude for Test assignment name 3" "checkbox" should not exist in the "Test assignment name 3" "table_row"
412
    And "Override for Manual grade" "checkbox" should not exist in the "Manual grade" "table_row"
413
    And "Exclude for Manual grade" "checkbox" should not exist in the "Manual grade" "table_row"
414
    And the field "Grade for Course total" matches value "210"
415
    And the field "Feedback for Course total" matches value ""
416
    And "Override for Course total" "checkbox" should exist in the "Course total" "table_row"
417
    And "Exclude for Course total" "checkbox" should exist in the "Course total" "table_row"
418
 
419
    And I click on "Student2" in the "Search users" search combo box
420
    And the following should exist in the "generaltable" table:
421
      | Grade item                 | Grade     | Feedback |
422
      | Test assignment name 2     |           |          |
423
      | Test assignment name 3     |           |          |
424
      | Manual grade               |           |          |
425
    And "Hidden" "icon" should not exist in the "Test assignment name 1" "table_row"
426
    And "Hidden" "icon" should not exist in the "Test assignment name 2" "table_row"
427
    And "Hidden" "icon" should not exist in the "Test assignment name 3" "table_row"
428
    And "Hidden" "icon" should not exist in the "Manual grade" "table_row"
429
    And "Hidden" "icon" should not exist in the "Course total" "table_row"
430
    And the field "Grade for Test assignment name 1" matches value "70"
431
    And the field "Feedback for Test assignment name 1" matches value ""
432
    And "Override for Test assignment name 1" "checkbox" should exist in the "Test assignment name 1" "table_row"
433
    And "Exclude for Test assignment name 1" "checkbox" should exist in the "Test assignment name 1" "table_row"
434
    And "Override for Test assignment name 2" "checkbox" should not exist in the "Test assignment name 2" "table_row"
435
    And "Exclude for Test assignment name 2" "checkbox" should not exist in the "Test assignment name 2" "table_row"
436
    And "Override for Test assignment name 3" "checkbox" should not exist in the "Test assignment name 3" "table_row"
437
    And "Exclude for Test assignment name 3" "checkbox" should not exist in the "Test assignment name 3" "table_row"
438
    And "Override for Manual grade" "checkbox" should not exist in the "Manual grade" "table_row"
439
    And "Exclude for Manual grade" "checkbox" should not exist in the "Manual grade" "table_row"
440
    And the field "Grade for Course total" matches value "220"
441
    And the field "Feedback for Course total" matches value ""
442
    And "Override for Course total" "checkbox" should exist in the "Course total" "table_row"
443
    Then "Exclude for Course total" "checkbox" should exist in the "Course total" "table_row"