Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@core @core_grades @javascript
2
Feature: Changing the aggregation of an item affects its weight and extra credit definition
3
  In order to switch to another aggregation method
4
  As an teacher
5
  I need to be able to edit the grade category settings
6
 
7
  Background:
8
    Given the following "courses" exist:
9
      | fullname | shortname |
10
      | Course 1 | C1        |
11
    And the following "grade categories" exist:
12
      | fullname      | course | aggregation |
13
      | Cat mean      | C1     | 0           |
14
      | Cat median    | C1     | 2           |
15
      | Cat min       | C1     | 4           |
16
      | Cat max       | C1     | 6           |
17
      | Cat mode      | C1     | 8           |
18
      | Cat weighted  | C1     | 10          |
19
      | Cat weighted2 | C1     | 10          |
20
      | Cat simple    | C1     | 11          |
21
      | Cat ec        | C1     | 12          |
22
      | Cat natural & | C1     | 13          |
23
    And the following "grade items" exist:
24
      | itemname  | course | category      | aggregationcoef | aggregationcoef2 | weightoverride |
25
      | Item a1   | C1     | ?             | 0               | 0                | 0              |
26
      | Item a2   | C1     | ?             | 0               | 0.40             | 1              |
27
      | Item a3   | C1     | ?             | 1               | 0.10             | 1              |
28
      | Item a4   | C1     | ?             | 1               | 0                | 0              |
29
      | Item b1   | C1     | Cat natural & | 0               | 0                | 0              |
30
      | Item b2   | C1     | Cat natural & | 0               | 0.40             | 1              |
31
      | Item b3   | C1     | Cat natural & | 1               | 0.10             | 1              |
32
      | Item b4   | C1     | Cat natural & | 1               | 0                | 0              |
33
    And I log in as "admin"
34
    And I change window size to "large"
35
    And I set the following administration settings values:
36
      | grade_aggregations_visible | Mean of grades,Weighted mean of grades,Simple weighted mean of grades,Mean of grades (with extra credits),Median of grades,Lowest grade,Highest grade,Mode of grades,Natural |
37
    And I am on the "Course 1" "grades > Grader report > View" page
38
    And I turn editing mode on
39
    And I click on grade item menu "Cat mean" of type "category" on "grader" page
40
    And I choose "Edit category" in the open action menu
41
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
42
    And I set the following fields to these values:
43
      | Weight adjusted     | 1  |
44
      | Weight              | 20 |
45
      | Extra credit        | 0  |
46
    And I press "Save changes"
47
    And I click on grade item menu "Cat median" of type "category" on "grader" page
48
    And I choose "Edit category" in the open action menu
49
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
50
    And I set the following fields to these values:
51
      | Weight adjusted     | 1  |
52
      | Weight              | 5  |
53
      | Extra credit        | 0  |
54
    And I press "Save changes"
55
    And I click on grade item menu "Cat min" of type "category" on "grader" page
56
    And I choose "Edit category" in the open action menu
57
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
58
    And I set the following fields to these values:
59
      | Weight adjusted     | 0  |
60
      | Weight              | 0  |
61
      | Extra credit        | 1  |
62
    And I press "Save changes"
63
    And I click on grade item menu "Item a1" of type "gradeitem" on "grader" page
64
    And I choose "Edit grade item" in the open action menu
65
    And the field "Weight adjusted" matches value "0"
66
    And the field "Extra credit" matches value "0"
67
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
68
    And I click on grade item menu "Item a2" of type "gradeitem" on "grader" page
69
    And I choose "Edit grade item" in the open action menu
70
    And the field "Weight adjusted" matches value "1"
71
    And the field "Weight" matches value "40.0"
72
    And the field "Extra credit" matches value "0"
73
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
74
    And I click on grade item menu "Item a3" of type "gradeitem" on "grader" page
75
    And I choose "Edit grade item" in the open action menu
76
    And the field "Weight adjusted" matches value "1"
77
    And the field "Weight" matches value "10.0"
78
    And the field "Extra credit" matches value "1"
79
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
80
    And I click on grade item menu "Item a4" of type "gradeitem" on "grader" page
81
    And I choose "Edit grade item" in the open action menu
82
    And the field "Weight adjusted" matches value "0"
83
    And the field "Extra credit" matches value "1"
84
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
85
    And I click on grade item menu "Item b1" of type "gradeitem" on "grader" page
86
    And I choose "Edit grade item" in the open action menu
87
    And the field "Weight adjusted" matches value "0"
88
    And the field "Extra credit" matches value "0"
89
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
90
    And I click on grade item menu "Item b2" of type "gradeitem" on "grader" page
91
    And I choose "Edit grade item" in the open action menu
92
    And the field "Weight adjusted" matches value "1"
93
    And the field "Weight" matches value "40.0"
94
    And the field "Extra credit" matches value "0"
95
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
96
    And I click on grade item menu "Item b3" of type "gradeitem" on "grader" page
97
    And I choose "Edit grade item" in the open action menu
98
    And the field "Weight adjusted" matches value "1"
99
    And the field "Weight" matches value "10.0"
100
    And the field "Extra credit" matches value "1"
101
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
102
    And I click on grade item menu "Item b4" of type "gradeitem" on "grader" page
103
    And I choose "Edit grade item" in the open action menu
104
    And the field "Weight adjusted" matches value "0"
105
    And the field "Extra credit" matches value "1"
106
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
107
 
108
  Scenario: Switching a category from Natural aggregation to Mean of grades and back
109
    Given I click on grade item menu "Course 1" of type "course" on "grader" page
110
    And I choose "Edit category" in the open action menu
111
    And I set the field "Aggregation" to "Mean of grades"
112
    When I click on "Save" "button" in the "Edit category" "dialogue"
113
    And I click on grade item menu "Item a1" of type "gradeitem" on "grader" page
114
    And I choose "Edit grade item" in the open action menu
115
    Then I should not see "Weight adjusted"
116
    And I should not see "Weight"
117
    And I should not see "Extra credit"
118
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
119
    And I click on grade item menu "Item a2" of type "gradeitem" on "grader" page
120
    And I choose "Edit grade item" in the open action menu
121
    And I should not see "Weight adjusted"
122
    And I should not see "Weight"
123
    And I should not see "Extra credit"
124
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
125
    And I click on grade item menu "Item a3" of type "gradeitem" on "grader" page
126
    And I choose "Edit grade item" in the open action menu
127
    And I should not see "Weight adjusted"
128
    And I should not see "Weight"
129
    And I should not see "Extra credit"
130
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
131
    And I click on grade item menu "Item a4" of type "gradeitem" on "grader" page
132
    And I choose "Edit grade item" in the open action menu
133
    And I should not see "Weight adjusted"
134
    And I should not see "Weight"
135
    And I should not see "Extra credit"
136
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
137
    And I click on grade item menu "Cat mean" of type "category" on "grader" page
138
    And I choose "Edit category" in the open action menu
139
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
140
    And I expand all fieldsets
141
    And I should not see "Weight adjusted"
142
    And I should not see "Weight" in the "#id_headerparent" "css_element"
143
    And I should not see "Extra credit"
144
    And I press "Cancel"
145
    And I click on grade item menu "Cat median" of type "category" on "grader" page
146
    And I choose "Edit category" in the open action menu
147
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
148
    And I expand all fieldsets
149
    And I should not see "Weight adjusted"
150
    And I should not see "Weight" in the "#id_headerparent" "css_element"
151
    And I should not see "Extra credit"
152
    And I press "Cancel"
153
    And I click on grade item menu "Cat min" of type "category" on "grader" page
154
    And I choose "Edit category" in the open action menu
155
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
156
    And I expand all fieldsets
157
    And I should not see "Weight adjusted"
158
    And I should not see "Weight" in the "#id_headerparent" "css_element"
159
    And I should not see "Extra credit"
160
    And I press "Cancel"
161
    And I click on grade item menu "Cat natural &" of type "category" on "grader" page
162
    And I choose "Edit category" in the open action menu
163
    And I set the field "Aggregation" to "Mean of grades"
164
    And I click on "Save" "button" in the "Edit category" "dialogue"
165
    And I wait until the page is ready
166
    And I click on grade item menu "Item b1" of type "gradeitem" on "grader" page
167
    And I choose "Edit grade item" in the open action menu
168
    And I should not see "Weight adjusted"
169
    And I should not see "Weight"
170
    And I should not see "Extra credit"
171
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
172
    And I click on grade item menu "Item b1" of type "gradeitem" on "grader" page
173
    And I choose "Edit grade item" in the open action menu
174
    And I should not see "Weight adjusted"
175
    And I should not see "Weight"
176
    And I should not see "Extra credit"
177
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
178
    And I click on grade item menu "Item b3" of type "gradeitem" on "grader" page
179
    And I choose "Edit grade item" in the open action menu
180
    And I should not see "Weight adjusted"
181
    And I should not see "Weight"
182
    And I should not see "Extra credit"
183
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
184
    And I click on grade item menu "Item b4" of type "gradeitem" on "grader" page
185
    And I choose "Edit grade item" in the open action menu
186
    And I should not see "Weight adjusted"
187
    And I should not see "Weight"
188
    And I should not see "Extra credit"
189
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
190
    # Switching back.
191
    And I click on grade item menu "Course 1" of type "course" on "grader" page
192
    And I choose "Edit category" in the open action menu
193
    And I set the field "Aggregation" to "Natural"
194
    And I click on "Save" "button" in the "Edit category" "dialogue"
195
    And I wait until the page is ready
196
    And I click on grade item menu "Item a1" of type "gradeitem" on "grader" page
197
    And I choose "Edit grade item" in the open action menu
198
    And the field "Weight adjusted" matches value "0"
199
    And the field "Extra credit" matches value "0"
200
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
201
    And I click on grade item menu "Item a2" of type "gradeitem" on "grader" page
202
    And I choose "Edit grade item" in the open action menu
203
    And the field "Weight adjusted" matches value "0"
204
    And the field "Extra credit" matches value "0"
205
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
206
    And I click on grade item menu "Item a3" of type "gradeitem" on "grader" page
207
    And I choose "Edit grade item" in the open action menu
208
    And the field "Weight adjusted" matches value "0"
209
    And the field "Extra credit" matches value "0"
210
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
211
    And I click on grade item menu "Item a4" of type "gradeitem" on "grader" page
212
    And I choose "Edit grade item" in the open action menu
213
    And the field "Weight adjusted" matches value "0"
214
    And the field "Extra credit" matches value "0"
215
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
216
    And I click on grade item menu "Cat mean" of type "category" on "grader" page
217
    And I choose "Edit category" in the open action menu
218
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
219
    And I expand all fieldsets
220
    And the field "Weight adjusted" matches value "0"
221
    And the field "Extra credit" matches value "0"
222
    And I press "Cancel"
223
    And I click on grade item menu "Cat median" of type "category" on "grader" page
224
    And I choose "Edit category" in the open action menu
225
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
226
    And I expand all fieldsets
227
    And the field "Weight adjusted" matches value "0"
228
    And the field "Extra credit" matches value "0"
229
    And I press "Cancel"
230
    And I click on grade item menu "Cat min" of type "category" on "grader" page
231
    And I choose "Edit category" in the open action menu
232
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
233
    And I expand all fieldsets
234
    And the field "Weight adjusted" matches value "0"
235
    And the field "Extra credit" matches value "0"
236
    And I press "Cancel"
237
    And I click on grade item menu "Cat natural &" of type "category" on "grader" page
238
    And I choose "Edit category" in the open action menu
239
    And I set the field "Aggregation" to "Natural"
240
    And I click on "Save" "button" in the "Edit category" "dialogue"
241
    And I wait until the page is ready
242
    And I click on grade item menu "Item b1" of type "gradeitem" on "grader" page
243
    And I choose "Edit grade item" in the open action menu
244
    And the field "Weight adjusted" matches value "0"
245
    And the field "Extra credit" matches value "0"
246
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
247
    And I click on grade item menu "Item b2" of type "gradeitem" on "grader" page
248
    And I choose "Edit grade item" in the open action menu
249
    And the field "Weight adjusted" matches value "0"
250
    And the field "Extra credit" matches value "0"
251
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
252
    And I click on grade item menu "Item b3" of type "gradeitem" on "grader" page
253
    And I choose "Edit grade item" in the open action menu
254
    And the field "Weight adjusted" matches value "0"
255
    And the field "Extra credit" matches value "0"
256
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
257
    And I click on grade item menu "Item b4" of type "gradeitem" on "grader" page
258
    And I choose "Edit grade item" in the open action menu
259
    And the field "Weight adjusted" matches value "0"
260
    And the field "Extra credit" matches value "0"
261
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
262
 
263
  Scenario: Switching a category from Natural aggregation to Weighted mean of grades and back
264
    Given I click on grade item menu "Course 1" of type "course" on "grader" page
265
    And I choose "Edit category" in the open action menu
266
    And I set the field "Aggregation" to "Weighted mean of grades"
267
    And I click on "Save" "button" in the "Edit category" "dialogue"
268
    And I wait until the page is ready
269
    And I click on grade item menu "Item a1" of type "gradeitem" on "grader" page
270
    And I choose "Edit grade item" in the open action menu
271
    Then I should not see "Weight adjusted"
272
    And I should not see "Extra credit"
273
    And the field "Item weight" matches value "1"
274
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
275
    And I click on grade item menu "Item a2" of type "gradeitem" on "grader" page
276
    And I choose "Edit grade item" in the open action menu
277
    And I should not see "Weight adjusted"
278
    And I should not see "Extra credit"
279
    And the field "Item weight" matches value "1"
280
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
281
    And I click on grade item menu "Item a3" of type "gradeitem" on "grader" page
282
    And I choose "Edit grade item" in the open action menu
283
    And I should not see "Weight adjusted"
284
    And I should not see "Extra credit"
285
    And the field "Item weight" matches value "1"
286
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
287
    And I click on grade item menu "Item a4" of type "gradeitem" on "grader" page
288
    And I choose "Edit grade item" in the open action menu
289
    And I should not see "Weight adjusted"
290
    And I should not see "Extra credit"
291
    And the field "Item weight" matches value "1"
292
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
293
    And I click on grade item menu "Cat mean" of type "category" on "grader" page
294
    And I choose "Edit category" in the open action menu
295
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
296
    And I expand all fieldsets
297
    And I should not see "Weight adjusted"
298
    And I should not see "Extra credit"
299
    And the field "Item weight" matches value "1"
300
    And I press "Cancel"
301
    And I click on grade item menu "Cat median" of type "category" on "grader" page
302
    And I choose "Edit category" in the open action menu
303
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
304
    And I expand all fieldsets
305
    And I should not see "Weight adjusted"
306
    And I should not see "Extra credit"
307
    And the field "Item weight" matches value "1"
308
    And I press "Cancel"
309
    And I click on grade item menu "Cat min" of type "category" on "grader" page
310
    And I choose "Edit category" in the open action menu
311
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
312
    And I expand all fieldsets
313
    And I should not see "Weight adjusted"
314
    And I should not see "Extra credit"
315
    And the field "Item weight" matches value "1"
316
    And I press "Cancel"
317
    And I click on grade item menu "Cat natural &" of type "category" on "grader" page
318
    And I choose "Edit category" in the open action menu
319
    And I set the field "Aggregation" to "Weighted mean of grades"
320
    And I click on "Save" "button" in the "Edit category" "dialogue"
321
    And I wait until the page is ready
322
    And I click on grade item menu "Item b1" of type "gradeitem" on "grader" page
323
    And I choose "Edit grade item" in the open action menu
324
    And I should not see "Weight adjusted"
325
    And I should not see "Extra credit"
326
    And the field "Item weight" matches value "1"
327
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
328
    And I click on grade item menu "Item b2" of type "gradeitem" on "grader" page
329
    And I choose "Edit grade item" in the open action menu
330
    And I should not see "Weight adjusted"
331
    And I should not see "Extra credit"
332
    And the field "Item weight" matches value "1"
333
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
334
    And I click on grade item menu "Item b3" of type "gradeitem" on "grader" page
335
    And I choose "Edit grade item" in the open action menu
336
    And I should not see "Weight adjusted"
337
    And I should not see "Extra credit"
338
    And the field "Item weight" matches value "1"
339
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
340
    And I click on grade item menu "Item b4" of type "gradeitem" on "grader" page
341
    And I choose "Edit grade item" in the open action menu
342
    And I should not see "Weight adjusted"
343
    And I should not see "Extra credit"
344
    And the field "Item weight" matches value "1"
345
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
346
    # Switching back.
347
    And I click on grade item menu "Course 1" of type "course" on "grader" page
348
    And I choose "Edit category" in the open action menu
349
    And I set the field "Aggregation" to "Natural"
350
    And I click on "Save" "button" in the "Edit category" "dialogue"
351
    And I wait until the page is ready
352
    And I click on grade item menu "Item a1" of type "gradeitem" on "grader" page
353
    And I choose "Edit grade item" in the open action menu
354
    And the field "Weight adjusted" matches value "0"
355
    And the field "Extra credit" matches value "0"
356
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
357
    And I click on grade item menu "Item a2" of type "gradeitem" on "grader" page
358
    And I choose "Edit grade item" in the open action menu
359
    And the field "Weight adjusted" matches value "0"
360
    And the field "Extra credit" matches value "0"
361
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
362
    And I click on grade item menu "Item a3" of type "gradeitem" on "grader" page
363
    And I choose "Edit grade item" in the open action menu
364
    And the field "Weight adjusted" matches value "0"
365
    And the field "Extra credit" matches value "0"
366
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
367
    And I click on grade item menu "Item a4" of type "gradeitem" on "grader" page
368
    And I choose "Edit grade item" in the open action menu
369
    And the field "Weight adjusted" matches value "0"
370
    And the field "Extra credit" matches value "0"
371
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
372
    And I click on grade item menu "Cat mean" of type "category" on "grader" page
373
    And I choose "Edit category" in the open action menu
374
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
375
    And I expand all fieldsets
376
    And the field "Weight adjusted" matches value "0"
377
    And the field "Extra credit" matches value "0"
378
    And I press "Cancel"
379
    And I click on grade item menu "Cat median" of type "category" on "grader" page
380
    And I choose "Edit category" in the open action menu
381
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
382
    And I expand all fieldsets
383
    And the field "Weight adjusted" matches value "0"
384
    And the field "Extra credit" matches value "0"
385
    And I press "Cancel"
386
    And I click on grade item menu "Cat min" of type "category" on "grader" page
387
    And I choose "Edit category" in the open action menu
388
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
389
    And I expand all fieldsets
390
    And the field "Weight adjusted" matches value "0"
391
    And the field "Extra credit" matches value "0"
392
    And I press "Cancel"
393
    And I click on grade item menu "Cat natural &" of type "category" on "grader" page
394
    And I choose "Edit category" in the open action menu
395
    And I set the field "Aggregation" to "Natural"
396
    And I click on "Save" "button" in the "Edit category" "dialogue"
397
    And I wait until the page is ready
398
    And I click on grade item menu "Item b1" of type "gradeitem" on "grader" page
399
    And I choose "Edit grade item" in the open action menu
400
    And the field "Weight adjusted" matches value "0"
401
    And the field "Extra credit" matches value "0"
402
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
403
    And I click on grade item menu "Item b2" of type "gradeitem" on "grader" page
404
    And I choose "Edit grade item" in the open action menu
405
    And the field "Weight adjusted" matches value "0"
406
    And the field "Extra credit" matches value "0"
407
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
408
    And I click on grade item menu "Item b3" of type "gradeitem" on "grader" page
409
    And I choose "Edit grade item" in the open action menu
410
    And the field "Weight adjusted" matches value "0"
411
    And the field "Extra credit" matches value "0"
412
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
413
    And I click on grade item menu "Item b4" of type "gradeitem" on "grader" page
414
    And I choose "Edit grade item" in the open action menu
415
    And the field "Weight adjusted" matches value "0"
416
    And the field "Extra credit" matches value "0"
417
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
418
 
419
  Scenario: Switching grade items between categories
420
    # Move to same aggregation (Natural).
421
    Given I navigate to "Setup > Gradebook setup" in the course gradebook
422
    And I set the field "Select Item a1" to "1"
423
    And I set the field "Select Item a2" to "1"
424
    And I set the field "Select Item a3" to "1"
425
    And I set the field "Select Item a4" to "1"
426
    And I click on "Move" "button" in the "sticky-footer" "region"
427
    And I click on "Cat natural &" "list_item" in the "Move items" "dialogue"
428
    When I click on "Move" "button" in the "Move items" "dialogue"
429
    And I navigate to "View > Grader report" in the course gradebook
430
    And I click on grade item menu "Item a1" of type "gradeitem" on "grader" page
431
    And I choose "Edit grade item" in the open action menu
432
    Then the field "Weight adjusted" matches value "0"
433
    And the field "Extra credit" matches value "0"
434
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
435
    And I click on grade item menu "Item a2" of type "gradeitem" on "grader" page
436
    And I choose "Edit grade item" in the open action menu
437
    And the field "Weight adjusted" matches value "1"
438
    And the field "Weight" matches value "40.0"
439
    And the field "Extra credit" matches value "0"
440
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
441
    And I click on grade item menu "Item a3" of type "gradeitem" on "grader" page
442
    And I choose "Edit grade item" in the open action menu
443
    And the field "Weight adjusted" matches value "1"
444
    And the field "Weight" matches value "10.0"
445
    And the field "Extra credit" matches value "1"
446
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
447
    And I click on grade item menu "Item a4" of type "gradeitem" on "grader" page
448
    And I choose "Edit grade item" in the open action menu
449
    And the field "Weight adjusted" matches value "0"
450
    And the field "Extra credit" matches value "1"
451
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
452
    # Move to Mean of grades (with extra credit).
453
    And I navigate to "Setup > Gradebook setup" in the course gradebook
454
    And I set the field "Select Item a1" to "1"
455
    And I set the field "Select Item a2" to "1"
456
    And I set the field "Select Item a3" to "1"
457
    And I set the field "Select Item a4" to "1"
458
    And I click on "Move" "button" in the "sticky-footer" "region"
459
    And I click on "Cat ec" "list_item" in the "Move items" "dialogue"
460
    And I click on "Move" "button" in the "Move items" "dialogue"
461
    And I navigate to "View > Grader report" in the course gradebook
462
    And I click on grade item menu "Item a1" of type "gradeitem" on "grader" page
463
    And I choose "Edit grade item" in the open action menu
464
    And the field "Extra credit" matches value "0"
465
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
466
    And I click on grade item menu "Item a2" of type "gradeitem" on "grader" page
467
    And I choose "Edit grade item" in the open action menu
468
    And the field "Extra credit" matches value "0"
469
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
470
    And I click on grade item menu "Item a3" of type "gradeitem" on "grader" page
471
    And I choose "Edit grade item" in the open action menu
472
    And the field "Extra credit" matches value "1"
473
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
474
    And I click on grade item menu "Item a4" of type "gradeitem" on "grader" page
475
    And I choose "Edit grade item" in the open action menu
476
    And the field "Extra credit" matches value "1"
477
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
478
    # Move to Simple weight mean of grades.
479
    And I navigate to "Setup > Gradebook setup" in the course gradebook
480
    And I set the field "Select Item a1" to "1"
481
    And I set the field "Select Item a2" to "1"
482
    And I set the field "Select Item a3" to "1"
483
    And I set the field "Select Item a4" to "1"
484
    And I click on "Move" "button" in the "sticky-footer" "region"
485
    And I click on "Cat simple" "list_item" in the "Move items" "dialogue"
486
    And I click on "Move" "button" in the "Move items" "dialogue"
487
    And I navigate to "View > Grader report" in the course gradebook
488
    And I click on grade item menu "Item a1" of type "gradeitem" on "grader" page
489
    And I choose "Edit grade item" in the open action menu
490
    And the field "Extra credit" matches value "0"
491
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
492
    And I click on grade item menu "Item a2" of type "gradeitem" on "grader" page
493
    And I choose "Edit grade item" in the open action menu
494
    And the field "Extra credit" matches value "0"
495
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
496
    And I click on grade item menu "Item a3" of type "gradeitem" on "grader" page
497
    And I choose "Edit grade item" in the open action menu
498
    And the field "Extra credit" matches value "1"
499
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
500
    And I click on grade item menu "Item a4" of type "gradeitem" on "grader" page
501
    And I choose "Edit grade item" in the open action menu
502
    And the field "Extra credit" matches value "1"
503
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
504
    # Move to Weighted mean of grades.
505
    And I navigate to "Setup > Gradebook setup" in the course gradebook
506
    And I set the field "Select Item a1" to "1"
507
    And I set the field "Select Item a2" to "1"
508
    And I set the field "Select Item a3" to "1"
509
    And I set the field "Select Item a4" to "1"
510
    And I click on "Move" "button" in the "sticky-footer" "region"
511
    And I click on "Cat weighted" "list_item" in the "Move items" "dialogue"
512
    And I click on "Move" "button" in the "Move items" "dialogue"
513
    And I navigate to "View > Grader report" in the course gradebook
514
    And I click on grade item menu "Item a1" of type "gradeitem" on "grader" page
515
    And I choose "Edit grade item" in the open action menu
516
    And the field "Item weight" matches value "1"
517
    And I set the field "Item weight" to "2"
518
    And I click on "Save" "button" in the "Edit grade item" "dialogue"
519
    And I click on grade item menu "Item a2" of type "gradeitem" on "grader" page
520
    And I choose "Edit grade item" in the open action menu
521
    And the field "Item weight" matches value "1"
522
    And I set the field "Item weight" to "5"
523
    And I click on "Save" "button" in the "Edit grade item" "dialogue"
524
    And I click on grade item menu "Item a3" of type "gradeitem" on "grader" page
525
    And I choose "Edit grade item" in the open action menu
526
    And the field "Item weight" matches value "1"
527
    And I set the field "Item weight" to "8"
528
    And I click on "Save" "button" in the "Edit grade item" "dialogue"
529
    And I click on grade item menu "Item a4" of type "gradeitem" on "grader" page
530
    And I choose "Edit grade item" in the open action menu
531
    And the field "Item weight" matches value "1"
532
    And I set the field "Item weight" to "11"
533
    And I click on "Save" "button" in the "Edit grade item" "dialogue"
534
    # Move to same (Weighted mean of grades).
535
    And I navigate to "Setup > Gradebook setup" in the course gradebook
536
    And I set the field "Select Item a1" to "1"
537
    And I set the field "Select Item a2" to "1"
538
    And I set the field "Select Item a3" to "1"
539
    And I set the field "Select Item a4" to "1"
540
    And I click on "Move" "button" in the "sticky-footer" "region"
541
    And I click on "Cat weighted2" "list_item" in the "Move items" "dialogue"
542
    And I click on "Move" "button" in the "Move items" "dialogue"
543
    And I wait "2" seconds
544
    And I navigate to "View > Grader report" in the course gradebook
545
    And I click on grade item menu "Item a1" of type "gradeitem" on "grader" page
546
    And I choose "Edit grade item" in the open action menu
547
    And the field "Item weight" matches value "2"
548
    And I click on "Save" "button" in the "Edit grade item" "dialogue"
549
    And I click on grade item menu "Item a2" of type "gradeitem" on "grader" page
550
    And I choose "Edit grade item" in the open action menu
551
    And the field "Item weight" matches value "5"
552
    And I click on "Save" "button" in the "Edit grade item" "dialogue"
553
    And I click on grade item menu "Item a3" of type "gradeitem" on "grader" page
554
    And I choose "Edit grade item" in the open action menu
555
    And the field "Item weight" matches value "8"
556
    And I click on "Save" "button" in the "Edit grade item" "dialogue"
557
    And I click on grade item menu "Item a4" of type "gradeitem" on "grader" page
558
    And I choose "Edit grade item" in the open action menu
559
    And the field "Item weight" matches value "11"
560
    And I click on "Save" "button" in the "Edit grade item" "dialogue"
561
    # Move back to Natural.
562
    And I navigate to "Setup > Gradebook setup" in the course gradebook
563
    And I set the field "Select Item a1" to "1"
564
    And I set the field "Select Item a2" to "1"
565
    And I set the field "Select Item a3" to "1"
566
    And I set the field "Select Item a4" to "1"
567
    And I click on "Move" "button" in the "sticky-footer" "region"
568
    And I click on "Cat natural &" "list_item" in the "Move items" "dialogue"
569
    And I click on "Move" "button" in the "Move items" "dialogue"
570
    And I navigate to "View > Grader report" in the course gradebook
571
    And I click on grade item menu "Item a1" of type "gradeitem" on "grader" page
572
    And I choose "Edit grade item" in the open action menu
573
    And the field "Weight adjusted" matches value "0"
574
    And the field "Extra credit" matches value "0"
575
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
576
    And I click on grade item menu "Item a2" of type "gradeitem" on "grader" page
577
    And I choose "Edit grade item" in the open action menu
578
    And the field "Weight adjusted" matches value "0"
579
    And the field "Extra credit" matches value "0"
580
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
581
    And I click on grade item menu "Item a3" of type "gradeitem" on "grader" page
582
    And I choose "Edit grade item" in the open action menu
583
    And the field "Weight adjusted" matches value "0"
584
    And the field "Extra credit" matches value "0"
585
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
586
    And I click on grade item menu "Item a4" of type "gradeitem" on "grader" page
587
    And I choose "Edit grade item" in the open action menu
588
    And the field "Weight adjusted" matches value "0"
589
    And the field "Extra credit" matches value "0"
590
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"