Línea 31... |
Línea 31... |
31 |
| student3 | G1 |
|
31 |
| student3 | G1 |
|
32 |
And the following "activities" exist:
|
32 |
And the following "activities" exist:
|
33 |
| activity | name | intro | course | assignsubmission_onlinetext_enabled |
|
33 |
| activity | name | intro | course | assignsubmission_onlinetext_enabled |
|
34 |
| assign | Test assignment name | Submit your online text | C1 | 1 |
|
34 |
| assign | Test assignment name | Submit your online text | C1 | 1 |
|
Línea -... |
Línea 35... |
- |
|
35 |
|
35 |
|
36 |
@javascript
|
36 |
Scenario: Add, modify then delete a group override
|
37 |
Scenario: Add, modify then delete a group override
|
37 |
Given I am on the "Test assignment name" Activity page logged in as teacher1
|
38 |
Given I am on the "Test assignment name" Activity page logged in as teacher1
|
38 |
When I navigate to "Overrides" in current page administration
|
39 |
When I navigate to "Overrides" in current page administration
|
39 |
And I select "Group overrides" from the "jump" singleselect
|
40 |
And I select "Group overrides" from the "jump" singleselect
|
Línea 255... |
Línea 256... |
255 |
And I should see "Visible to everyone/Non-Participation" in the "Override group" "select"
|
256 |
And I should see "Visible to everyone/Non-Participation" in the "Override group" "select"
|
256 |
And I should see "Only visible to members" in the "Override group" "select"
|
257 |
And I should see "Only visible to members" in the "Override group" "select"
|
257 |
And I should see "Only visible to members/Non-Participation" in the "Override group" "select"
|
258 |
And I should see "Only visible to members/Non-Participation" in the "Override group" "select"
|
258 |
And I should see "Only see own membership" in the "Override group" "select"
|
259 |
And I should see "Only see own membership" in the "Override group" "select"
|
259 |
And I should not see "Not visible" in the "Override group" "select"
|
260 |
And I should not see "Not visible" in the "Override group" "select"
|
- |
|
261 |
|
- |
|
262 |
@javascript
|
- |
|
263 |
Scenario: Teachers can trigger grade penalty recalculation when modifying or deleting group overrides
|
- |
|
264 |
Given I enable grade penalties for assignment
|
- |
|
265 |
And the following "activity" exists:
|
- |
|
266 |
| activity | assign |
|
- |
|
267 |
| course | C1 |
|
- |
|
268 |
| name | Test assignment penalty |
|
- |
|
269 |
| intro | Test assignment description |
|
- |
|
270 |
| grade | 100 |
|
- |
|
271 |
| duedate | ##tomorrow## |
|
- |
|
272 |
| gradepenalty | 1 |
|
- |
|
273 |
| assignsubmission_onlinetext_enabled | 1 |
|
- |
|
274 |
| submissiondrafts | 0 |
|
- |
|
275 |
And the following "mod_assign > submissions" exist:
|
- |
|
276 |
| assign | user | onlinetext |
|
- |
|
277 |
| Test assignment name | student1 | I'm the student first submission |
|
- |
|
278 |
# Add a group override with a due date set in the future.
|
- |
|
279 |
And I am on the "Test assignment penalty" Activity page logged in as teacher1
|
- |
|
280 |
And I navigate to "Overrides" in current page administration
|
- |
|
281 |
And I select "Group overrides" from the "jump" singleselect
|
- |
|
282 |
And I press "Add group override"
|
- |
|
283 |
And I set the following fields to these values:
|
- |
|
284 |
| Override group | Group 1 |
|
- |
|
285 |
| Due date | ##tomorrow +1day## |
|
- |
|
286 |
And I press "Save"
|
- |
|
287 |
And I change window size to "large"
|
- |
|
288 |
And I go to "Sam1 Student1" "Test assignment penalty" activity advanced grading page
|
- |
|
289 |
And I set the field "Grade out of 100" to "90"
|
- |
|
290 |
And I set the field "Notify student" to "0"
|
- |
|
291 |
And I press "Save changes"
|
- |
|
292 |
And I follow "View all submissions"
|
- |
|
293 |
And "Sam1 Student1" row "Grade" column of "submissions" table should contain "90.00"
|
- |
|
294 |
And "Sam1 Student1" row "Final grade" column of "submissions" table should contain "90.00"
|
- |
|
295 |
# Modify the group override by changing the due date to a past date.
|
- |
|
296 |
And I navigate to "Overrides" in current page administration
|
- |
|
297 |
And I select "Group overrides" from the "jump" singleselect
|
- |
|
298 |
And I click on "Edit" "link" in the "Group 1" "table_row"
|
- |
|
299 |
When I set the following fields to these values:
|
- |
|
300 |
| Recalculate penalty | Yes |
|
- |
|
301 |
| Due date | ##yesterday## |
|
- |
|
302 |
And I press "Save"
|
- |
|
303 |
And I navigate to "Submissions" in current page administration
|
- |
|
304 |
Then "Sam1 Student1" row "Grade" column of "submissions" table should contain "90.00"
|
- |
|
305 |
And "Sam1 Student1" row "Final grade" column of "submissions" table should contain "80.00"
|
- |
|
306 |
# Delete the group override.
|
- |
|
307 |
And I navigate to "Overrides" in current page administration
|
- |
|
308 |
And I select "Group overrides" from the "jump" singleselect
|
- |
|
309 |
And I click on "Delete" "link" in the "Group 1" "table_row"
|
- |
|
310 |
And I click on "Recalculate penalty for user(s) in the override" "checkbox" in the "Confirm" "dialogue"
|
- |
|
311 |
And I click on "Continue" "button" in the "Confirm" "dialogue"
|
- |
|
312 |
And I navigate to "Submissions" in current page administration
|
- |
|
313 |
And "Sam1 Student1" row "Grade" column of "submissions" table should contain "90.00"
|
- |
|
314 |
And "Sam1 Student1" row "Final grade" column of "submissions" table should contain "90.00"
|
- |
|
315 |
|
- |
|
316 |
@javascript
|
- |
|
317 |
Scenario: Assign activity group overrides are displayed on the timeline block
|
- |
|
318 |
Given the following "group members" exist:
|
- |
|
319 |
| user | group |
|
- |
|
320 |
| student1 | G2 |
|
- |
|
321 |
And I am on the "Test assignment name" "assign activity editing" page logged in as teacher1
|
- |
|
322 |
And I set the following fields to these values:
|
- |
|
323 |
| allowsubmissionsfromdate[enabled] | 1 |
|
- |
|
324 |
| duedate[enabled] | 1 |
|
- |
|
325 |
| allowsubmissionsfromdate | ##today## |
|
- |
|
326 |
| duedate | ##tomorrow## |
|
- |
|
327 |
And I press "Save and display"
|
- |
|
328 |
When I log in as "student1"
|
- |
|
329 |
Then I should see "##tomorrow##%A, %d %B %Y##" in the "Timeline" "block"
|
- |
|
330 |
And I am on the "Test assignment name" "assign activity" page logged in as teacher1
|
- |
|
331 |
And I navigate to "Overrides" in current page administration
|
- |
|
332 |
And I select "Group overrides" from the "jump" singleselect
|
- |
|
333 |
And I press "Add group override"
|
- |
|
334 |
And I set the following fields to these values:
|
- |
|
335 |
| Override group | Group 1 |
|
- |
|
336 |
| Allow submissions from | ##tomorrow## |
|
- |
|
337 |
| Due date | ##tomorrow +1day## |
|
- |
|
338 |
And I press "Save"
|
- |
|
339 |
And I log in as "student1"
|
- |
|
340 |
And I should see "##tomorrow +1day##%A, %d %B %Y##" in the "Timeline" "block"
|
- |
|
341 |
And I am on the "Test assignment name" "assign activity" page logged in as teacher1
|
- |
|
342 |
And I navigate to "Overrides" in current page administration
|
- |
|
343 |
And I select "Group overrides" from the "jump" singleselect
|
- |
|
344 |
And I press "Add group override"
|
- |
|
345 |
And I set the following fields to these values:
|
- |
|
346 |
| Override group | Group 2 |
|
- |
|
347 |
| Allow submissions from | ##tomorrow +1day## |
|
- |
|
348 |
| Due date | ##tomorrow +3days## |
|
- |
|
349 |
And I press "Save"
|
- |
|
350 |
And I click on "Move up" "link" in the "Group 2" "table_row"
|
- |
|
351 |
And I log in as "student1"
|
- |
|
352 |
And I should see "##tomorrow +3days##%A, %d %B %Y##" in the "Timeline" "block"
|
- |
|
353 |
|
- |
|
354 |
@javascript
|
- |
|
355 |
Scenario: Assign activity user override is displayed even if group override exists on the timeline block
|
- |
|
356 |
Given the following "group members" exist:
|
- |
|
357 |
| user | group |
|
- |
|
358 |
| student1 | G2 |
|
- |
|
359 |
And I am on the "Test assignment name" "assign activity editing" page logged in as teacher1
|
- |
|
360 |
And I set the following fields to these values:
|
- |
|
361 |
| allowsubmissionsfromdate[enabled] | 1 |
|
- |
|
362 |
| duedate[enabled] | 1 |
|
- |
|
363 |
| allowsubmissionsfromdate | ##today## |
|
- |
|
364 |
| duedate | ##tomorrow## |
|
- |
|
365 |
And I press "Save and display"
|
- |
|
366 |
And I navigate to "Overrides" in current page administration
|
- |
|
367 |
And I select "Group overrides" from the "jump" singleselect
|
- |
|
368 |
And I press "Add group override"
|
- |
|
369 |
And I set the following fields to these values:
|
- |
|
370 |
| Override group | Group 1 |
|
- |
|
371 |
| Allow submissions from | ##tomorrow## |
|
- |
|
372 |
| Due date | ##tomorrow +1day## |
|
- |
|
373 |
And I press "Save"
|
- |
|
374 |
And I press "Add group override"
|
- |
|
375 |
And I set the following fields to these values:
|
- |
|
376 |
| Override group | Group 2 |
|
- |
|
377 |
| Allow submissions from | ##tomorrow +1day## |
|
- |
|
378 |
| Due date | ##tomorrow +3days## |
|
- |
|
379 |
And I navigate to "Overrides > Add user override" in current page administration
|
- |
|
380 |
And I set the following fields to these values:
|
- |
|
381 |
| Override user | Sam1 Student1 |
|
- |
|
382 |
| allowsubmissionsfromdate | ##tomorrow## |
|
- |
|
383 |
| duedate | ##tomorrow noon## |
|
- |
|
384 |
And I press "Save"
|
- |
|
385 |
When I log in as "student1"
|
- |
|
386 |
Then I should see "##tomorrow noon##%A, %d %B %Y##" in the "Timeline" "block"
|
- |
|
387 |
|
- |
|
388 |
@javascript
|
- |
|
389 |
Scenario: Assign activity override are not visible on timeline block when student is unenrolled
|
- |
|
390 |
Given the following "group members" exist:
|
- |
|
391 |
| user | group |
|
- |
|
392 |
| student1 | G2 |
|
- |
|
393 |
And I am on the "Test assignment name" "assign activity" page logged in as teacher1
|
- |
|
394 |
And I navigate to "Overrides" in current page administration
|
- |
|
395 |
And I select "Group overrides" from the "jump" singleselect
|
- |
|
396 |
And I press "Add group override"
|
- |
|
397 |
And I set the following fields to these values:
|
- |
|
398 |
| Override group | Group 2 |
|
- |
|
399 |
| Allow submissions from | ##tomorrow +1day## |
|
- |
|
400 |
| Due date | ##tomorrow +3days## |
|
- |
|
401 |
And I navigate to "Overrides > Add user override" in current page administration
|
- |
|
402 |
And I set the following fields to these values:
|
- |
|
403 |
| Override user | Sam1 Student1 |
|
- |
|
404 |
| allowsubmissionsfromdate | ##tomorrow## |
|
- |
|
405 |
| duedate | ##tomorrow noon## |
|
- |
|
406 |
And I press "Save"
|
- |
|
407 |
And I am on "Course 1" course homepage
|
- |
|
408 |
And I navigate to course participants
|
- |
|
409 |
And I click on "Unenrol" "icon" in the "student1" "table_row"
|
- |
|
410 |
And I click on "Unenrol" "button" in the "Unenrol" "dialogue"
|
- |
|
411 |
When I log in as "student1"
|
- |
|
412 |
Then "Test assignment name" "link" should not exist in the "Timeline" "block"
|
- |
|
413 |
And I should not see "##tomorrow noon##%A, %d %B %Y##" in the "Timeline" "block"
|