Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 76... Línea 76...
76
    And the following should exist in the "setup-grades" table:
76
    And the following should exist in the "setup-grades" table:
77
      | Name                |
77
      | Name                |
78
      | Course              |
78
      | Course              |
79
    And I should see "Course" in the "setup-grades" "table"
79
    And I should see "Course" in the "setup-grades" "table"
80
    And "Expand" "link" should exist in the "Course" "table_row"
80
    And "Expand" "link" should exist in the "Course" "table_row"
81
    And the following should not exist in the "setup-grades" table:
81
    And I should not see "Test assignment one" in the "setup-grades" "table"
82
      | Name                |
-
 
83
      | Test assignment one |
-
 
84
      | Category 1          |
82
    And I should not see "Category 1" in the "setup-grades" "table"
85
      | Test assignment two |
83
    And I should not see "Test assignment two" in the "setup-grades" "table"
86
      | Manual grade        |
84
    And I should not see "Manual grade" in the "setup-grades" "table"
87
      | Category 1 total    |
85
    And I should not see "Category 1 total" in the "setup-grades" "table"
88
      | Course total        |
86
    And I should not see "Course total" in the "setup-grades" "table"
89
    # Expand the grade category 'Course'. 'Category 1' should be still collapsed.
87
    # Expand the grade category 'Course'. 'Category 1' should be still collapsed.
90
    And I click on "Expand" "link" in the "Course" "table_row"
88
    And I click on "Expand" "link" in the "Course" "table_row"
91
    And the following should exist in the "setup-grades" table:
89
    And the following should exist in the "setup-grades" table:
92
      | Name                |
90
      | Name                |
93
      | Course              |
91
      | Course              |
94
      | Test assignment one |
92
      | Test assignment one |
95
      | Category 1          |
93
      | Category 1          |
96
      | Course total        |
94
      | Course total        |
97
    And "Collapse" "link" should exist in the "Course" "table_row"
95
    And "Collapse" "link" should exist in the "Course" "table_row"
98
    And "Expand" "link" should exist in the "Category 1" "table_row"
96
    And "Expand" "link" should exist in the "Category 1" "table_row"
99
    And the following should not exist in the "setup-grades" table:
97
    And I should not see "Test assignment two" in the "setup-grades" "table"
100
      | Name                |
-
 
101
      | Test assignment two |
-
 
102
      | Manual grade        |
98
    And I should not see "Manual grade" in the "setup-grades" "table"
103
      | Category 1 total    |
99
    And I should not see "Category 1 total" in the "setup-grades" "table"
Línea 104... Línea 100...
104
 
100
 
105
  Scenario: A teacher can see the aggregated max grade for a grade category even when the category is collapsed
101
  Scenario: A teacher can see the aggregated max grade for a grade category even when the category is collapsed
106
    Given the following should exist in the "setup-grades" table:
102
    Given the following should exist in the "setup-grades" table:
107
      | Name             | Max grade |
103
      | Name             | Max grade |
Línea 148... Línea 144...
148
      | Course              |
144
      | Course              |
149
      | Test assignment one |
145
      | Test assignment one |
150
      | Category 1          |
146
      | Category 1          |
151
    And "Collapse" "link" should exist in the "Course" "table_row"
147
    And "Collapse" "link" should exist in the "Course" "table_row"
152
    And "Expand" "link" should exist in the "Category 1" "table_row"
148
    And "Expand" "link" should exist in the "Category 1" "table_row"
153
    And the following should not exist in the "setup-grades" table:
149
    And I should not see "Test assignment two" in the "setup-grades" "table"
154
      | Name                |
-
 
155
      | Test assignment two |
-
 
156
      | Manual grade        |
150
    And I should not see "Manual grade" in the "setup-grades" "table"
157
      | Category 1 total    |
151
    And I should not see "Category 1 total" in the "setup-grades" "table"
158
    # Expand the grade category 'Category 1'.
152
    # Expand the grade category 'Category 1'.
159
    And I click on "Expand" "link" in the "Category 1" "table_row"
153
    And I click on "Expand" "link" in the "Category 1" "table_row"
160
    And the following should exist in the "setup-grades" table:
154
    And the following should exist in the "setup-grades" table:
161
      | Name                |
155
      | Name                |
162
      | Course              |
156
      | Course              |
Línea 170... Línea 164...
170
    And I click on "Collapse" "link" in the "Category 1" "table_row"
164
    And I click on "Collapse" "link" in the "Category 1" "table_row"
171
    # Collapse the grade category 'Course'.
165
    # Collapse the grade category 'Course'.
172
    And I click on "Collapse" "link" in the "Course" "table_row"
166
    And I click on "Collapse" "link" in the "Course" "table_row"
173
    And I should see "Course" in the "setup-grades" "table"
167
    And I should see "Course" in the "setup-grades" "table"
174
    And "Expand" "link" should exist in the "Course" "table_row"
168
    And "Expand" "link" should exist in the "Course" "table_row"
175
    And the following should not exist in the "setup-grades" table:
169
    And I should not see "Test assignment one" in the "setup-grades" "table"
176
      | Name                |
-
 
177
      | Test assignment one |
-
 
178
      | Category 1          |
170
    And I should not see "Category 1" in the "setup-grades" "table"
179
      | Test assignment two |
171
    And I should not see "Test assignment two" in the "setup-grades" "table"
180
      | Manual grade        |
172
    And I should not see "Manual grade" in the "setup-grades" "table"
181
    # Expand the grade category 'Course'. 'Category 1' should be still collapsed.
173
    # Expand the grade category 'Course'. 'Category 1' should be still collapsed.
182
    And I click on "Expand" "link" in the "Course" "table_row"
174
    And I click on "Expand" "link" in the "Course" "table_row"
183
    And the following should exist in the "setup-grades" table:
175
    And the following should exist in the "setup-grades" table:
184
      | Name                |
176
      | Name                |
185
      | Course              |
177
      | Course              |
186
      | Test assignment one |
178
      | Test assignment one |
187
      | Category 1          |
179
      | Category 1          |
188
    And "Collapse" "link" should exist in the "Course" "table_row"
180
    And "Collapse" "link" should exist in the "Course" "table_row"
189
    And "Expand" "link" should exist in the "Category 1" "table_row"
181
    And "Expand" "link" should exist in the "Category 1" "table_row"
190
    And the following should not exist in the "setup-grades" table:
182
    And I should not see "Test assignment two" in the "setup-grades" "table"
191
      | Name                |
-
 
192
      | Test assignment two |
-
 
193
      | Manual grade        |
183
    And I should not see "Manual grade" in the "setup-grades" "table"
194
      | Category 1 total    |
184
    And I should not see "Category 1 total" in the "setup-grades" "table"
Línea 195... Línea 185...
195
 
185
 
196
  Scenario: Previously collapsed categories are still shown as collapsed when a teacher navigates back to Gradebook setup
186
  Scenario: Previously collapsed categories are still shown as collapsed when a teacher navigates back to Gradebook setup
197
    # Collapse the grade category 'Category 1' and navigate to the course homepage.
187
    # Collapse the grade category 'Category 1' and navigate to the course homepage.
198
    Given I click on "Collapse" "link" in the "Category 1" "table_row"
188
    Given I click on "Collapse" "link" in the "Category 1" "table_row"
Línea 204... Línea 194...
204
      | Test assignment one |
194
      | Test assignment one |
205
      | Category 1          |
195
      | Category 1          |
206
      | Course total        |
196
      | Course total        |
207
    And "Collapse" "link" should exist in the "Course" "table_row"
197
    And "Collapse" "link" should exist in the "Course" "table_row"
208
    And "Expand" "link" should exist in the "Category 1" "table_row"
198
    And "Expand" "link" should exist in the "Category 1" "table_row"
209
    And the following should not exist in the "setup-grades" table:
199
    And I should not see "Test assignment two" in the "setup-grades" "table"
210
      | Name                |
-
 
211
      | Test assignment two |
-
 
212
      | Manual grade        |
200
    And I should not see "Manual grade" in the "setup-grades" "table"
213
      | Category 1 total    |
201
    And I should not see "Category 1 total" in the "setup-grades" "table"
Línea 214... Línea 202...
214
 
202
 
215
  Scenario: Previously collapsed categories are still shown as collapsed when a teacher is moving grade items in Gradebook setup
203
  Scenario: Previously collapsed categories are still shown as collapsed when a teacher is moving grade items in Gradebook setup
216
    # Collapse the grade category 'Category 1'.
204
    # Collapse the grade category 'Category 1'.
217
    Given I click on "Collapse" "link" in the "Category 1" "table_row"
205
    Given I click on "Collapse" "link" in the "Category 1" "table_row"
Línea 222... Línea 210...
222
      | Course              |
210
      | Course              |
223
      | Test assignment one |
211
      | Test assignment one |
224
      | Category 1          |
212
      | Category 1          |
225
    And "Collapse" "link" should exist in the "Course" "table_row"
213
    And "Collapse" "link" should exist in the "Course" "table_row"
226
    And "Expand" "link" should exist in the "Category 1" "table_row"
214
    And "Expand" "link" should exist in the "Category 1" "table_row"
227
    And the following should not exist in the "setup-grades" table:
215
    And I should not see "Test assignment two" in the "setup-grades" "table"
228
      | Name                |
-
 
229
      | Test assignment two |
-
 
230
      | Manual grade        |
216
    And I should not see "Manual grade" in the "setup-grades" "table"
231
      | Category 1 total    |
217
    And I should not see "Category 1 total" in the "setup-grades" "table"
Línea 232... Línea 218...
232
 
218
 
233
  Scenario: Grade categories are shown as collapsed only to the teacher that collapsed them
219
  Scenario: Grade categories are shown as collapsed only to the teacher that collapsed them
234
    # Collapse the grade category 'Category 1'.
220
    # Collapse the grade category 'Category 1'.
-
 
221
    Given I click on "Collapse" "link" in the "Category 1" "table_row"
235
    Given I click on "Collapse" "link" in the "Category 1" "table_row"
222
    When I reload the page
236
    # Log in as teacher2 and confirm that the category 'Category 1' is not collapsed.
-
 
237
    When I am on the "Course" "grades > gradebook setup" page logged in as "teacher2"
223
    # Reload the page and confirm that the category 'Category 1' is still collapsed.
238
    Then the following should exist in the "setup-grades" table:
224
    Then the following should exist in the "setup-grades" table:
239
      | Name                |
225
      | Name                |
240
      | Course              |
226
      | Course              |
241
      | Test assignment one |
227
      | Test assignment one |
242
      | Category 1          |
-
 
243
      | Test assignment two |
-
 
244
      | Manual grade        |
-
 
245
      | Category 1 total    |
228
      | Category 1          |
246
      | Course total        |
229
      | Course total        |
247
    And "Collapse" "link" should exist in the "Course" "table_row"
230
    And "Collapse" "link" should exist in the "Course" "table_row"
-
 
231
    And "Expand" "link" should exist in the "Category 1" "table_row"
-
 
232
    And I should not see "Test assignment two" in the "setup-grades" "table"
-
 
233
    And I should not see "Manual grade" in the "setup-grades" "table"
248
    And "Collapse" "link" should exist in the "Category 1" "table_row"
234
    And I should not see "Category 1 total" in the "setup-grades" "table"
249
    # Log in as teacher1 and confirm that the category 'Category 1' is still collapsed.
235
    # Log in as teacher2 and confirm that the category 'Category 1' is not collapsed.
250
    And I am on the "Course" "grades > gradebook setup" page logged in as "teacher1"
236
    And I am on the "Course" "grades > gradebook setup" page logged in as "teacher2"
251
    And the following should exist in the "setup-grades" table:
237
    And the following should exist in the "setup-grades" table:
252
      | Name                |
238
      | Name                |
253
      | Course              |
239
      | Course              |
254
      | Test assignment one |
240
      | Test assignment one |
255
      | Category 1          |
-
 
256
      | Course total        |
-
 
257
    And "Collapse" "link" should exist in the "Course" "table_row"
-
 
258
    And "Expand" "link" should exist in the "Category 1" "table_row"
-
 
259
    And the following should not exist in the "setup-grades" table:
-
 
260
      | Name                |
241
      | Category 1          |
261
      | Test assignment two |
242
      | Test assignment two |
262
      | Manual grade        |
243
      | Manual grade        |
-
 
244
      | Category 1 total    |
-
 
245
      | Course total        |
-
 
246
    And "Collapse" "link" should exist in the "Course" "table_row"