1 |
efrain |
1 |
@report @report_progress
|
|
|
2 |
Feature: Teacher can view and override users' activity completion data via the progress report.
|
|
|
3 |
In order to view and override a student's activity completion status
|
|
|
4 |
As a teacher
|
|
|
5 |
I need to view the course progress report and click the respective completion status icon
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "courses" exist:
|
|
|
9 |
| fullname | shortname | format | enablecompletion |
|
|
|
10 |
| Course 1 | C1 | topics | 1 |
|
|
|
11 |
And the following "activities" exist:
|
|
|
12 |
| activity | name | intro | course | idnumber | section | completion | completionview | completionusegrade | assignsubmission_onlinetext_enabled | submissiondrafts |
|
|
|
13 |
| assign | my assignment | A1 desc | C1 | assign1 | 0 | 1 | 0 | | 0 | 0 |
|
|
|
14 |
| assign | my assignment 2 | A2 desc | C1 | assign2 | 0 | 2 | 1 | | 0 | 0 |
|
|
|
15 |
| assign | my assignment 3 | A3 desc | C1 | assign3 | 0 | 2 | 1 | 1 | 1 | 0 |
|
|
|
16 |
And the following "users" exist:
|
|
|
17 |
| username | firstname | lastname | email | idnumber | middlename | alternatename | firstnamephonetic | lastnamephonetic |
|
|
|
18 |
| teacher1 | Teacher | One | teacher1@example.com | t1 | | fred | | |
|
|
|
19 |
| student1 | Grainne | Beauchamp | student1@example.com | s1 | Ann | Jill | Gronya | Beecham |
|
|
|
20 |
And the following "course enrolments" exist:
|
|
|
21 |
| user | course | role |
|
|
|
22 |
| teacher1 | C1 | editingteacher |
|
|
|
23 |
| student1 | C1 | student |
|
|
|
24 |
And the following config values are set as admin:
|
|
|
25 |
| fullnamedisplay | firstname |
|
|
|
26 |
| alternativefullnameformat | middlename, alternatename, firstname, lastname |
|
|
|
27 |
|
|
|
28 |
# Course comprising one activity with auto completion (student must view it) and one with manual completion.
|
|
|
29 |
# This confirms that after being completed by the student and overridden by the teacher, that both activities can still be
|
|
|
30 |
# completed again via normal mechanisms.
|
|
|
31 |
@javascript
|
|
|
32 |
Scenario: Given the status has been overridden, when a student tries to complete it again, completion can still occur.
|
|
|
33 |
# Student completes the activities, manual and automatic completion.
|
|
|
34 |
Given I am on the "Course 1" course page logged in as student1
|
|
|
35 |
And the manual completion button of "my assignment" is displayed as "Mark as done"
|
|
|
36 |
And I toggle the manual completion state of "my assignment"
|
|
|
37 |
And the manual completion button of "my assignment" is displayed as "Done"
|
|
|
38 |
And I am on the "my assignment 2" "assign activity" page
|
|
|
39 |
And the "View" completion condition of "my assignment 2" is displayed as "done"
|
|
|
40 |
And I log out
|
|
|
41 |
|
|
|
42 |
# Teacher overrides the activity completion statuses to incomplete.
|
|
|
43 |
When I am on the "Course 1" course page logged in as teacher1
|
|
|
44 |
And I navigate to "Reports" in current page administration
|
|
|
45 |
And I click on "Activity completion" "link"
|
|
|
46 |
And "Ann, Jill, Grainne, Beauchamp, my assignment: Completed" "icon" should exist in the "Ann, Jill, Grainne, Beauchamp" "table_row"
|
|
|
47 |
And "Ann, Jill, Grainne, Beauchamp, my assignment 2: Completed" "icon" should exist in the "Ann, Jill, Grainne, Beauchamp" "table_row"
|
|
|
48 |
And I click on "my assignment" "link" in the "Ann, Jill, Grainne, Beauchamp" "table_row"
|
|
|
49 |
And I click on "Save changes" "button"
|
|
|
50 |
And "Ann, Jill, Grainne, Beauchamp, my assignment: Not completed (set by Teacher)" "icon" should exist in the "Ann, Jill, Grainne, Beauchamp" "table_row"
|
|
|
51 |
And I click on "my assignment 2" "link" in the "Ann, Jill, Grainne, Beauchamp" "table_row"
|
|
|
52 |
And I click on "Save changes" "button"
|
|
|
53 |
And "Ann, Jill, Grainne, Beauchamp, my assignment 2: Not completed (set by Teacher)" "icon" should exist in the "Ann, Jill, Grainne, Beauchamp" "table_row"
|
|
|
54 |
And I log out
|
|
|
55 |
|
|
|
56 |
# Student can now complete the activities again, via normal means.
|
|
|
57 |
And I am on the "Course 1" course page logged in as student1
|
|
|
58 |
Then the manual completion button of "my assignment" overridden by "Teacher" is displayed as "Mark as done"
|
|
|
59 |
And the "View" completion condition of "my assignment 2" overridden by "Teacher" is displayed as "todo"
|
|
|
60 |
And I toggle the manual completion state of "my assignment"
|
|
|
61 |
And the manual completion button of "my assignment" is displayed as "Done"
|
|
|
62 |
And I am on the "my assignment 2" "assign activity" page
|
|
|
63 |
|
|
|
64 |
And I am on "Course 1" course homepage
|
|
|
65 |
And the "View" completion condition of "my assignment 2" is displayed as "done"
|
|
|
66 |
And I log out
|
|
|
67 |
|
|
|
68 |
# And the activity completion report should show the same.
|
|
|
69 |
And I am on the "Course 1" Course page logged in as teacher1
|
|
|
70 |
And I navigate to "Reports" in current page administration
|
|
|
71 |
And I click on "Activity completion" "link"
|
|
|
72 |
And "Ann, Jill, Grainne, Beauchamp, my assignment: Completed" "icon" should exist in the "Ann, Jill, Grainne, Beauchamp" "table_row"
|
|
|
73 |
And "Ann, Jill, Grainne, Beauchamp, my assignment 2: Completed" "icon" should exist in the "Ann, Jill, Grainne, Beauchamp" "table_row"
|
|
|
74 |
|
|
|
75 |
# Course comprising one activity with auto completion (student must view it and receive a grade) and one with manual completion.
|
|
|
76 |
# This confirms that after being overridden to complete by the teacher, that the completion status for activities with automatic
|
|
|
77 |
# completion can no longer be affected by any normal completion mechanisms triggered by the student. Manual completion unaffected.
|
|
|
78 |
@javascript
|
|
|
79 |
Scenario: Given the status has been overridden to complete, when a student triggers completion updates, the status remains fixed.
|
|
|
80 |
# When the teacher overrides the activity completion statuses to complete.
|
|
|
81 |
When I am on the "Course 1" Course page logged in as teacher1
|
|
|
82 |
And I navigate to "Reports" in current page administration
|
|
|
83 |
And I click on "Activity completion" "link"
|
|
|
84 |
And "Ann, Jill, Grainne, Beauchamp, my assignment: Not completed" "icon" should exist in the "Ann, Jill, Grainne, Beauchamp" "table_row"
|
|
|
85 |
And "Ann, Jill, Grainne, Beauchamp, my assignment 3: Not completed" "icon" should exist in the "Ann, Jill, Grainne, Beauchamp" "table_row"
|
|
|
86 |
And I click on "my assignment" "link" in the "Ann, Jill, Grainne, Beauchamp" "table_row"
|
|
|
87 |
And I click on "Save changes" "button"
|
|
|
88 |
And "Ann, Jill, Grainne, Beauchamp, my assignment: Completed (set by Teacher)" "icon" should exist in the "Ann, Jill, Grainne, Beauchamp" "table_row"
|
|
|
89 |
And I click on "my assignment 3" "link" in the "Ann, Jill, Grainne, Beauchamp" "table_row"
|
|
|
90 |
And I click on "Save changes" "button"
|
|
|
91 |
And "Ann, Jill, Grainne, Beauchamp, my assignment 3: Completed (set by Teacher)" "icon" should exist in the "Ann, Jill, Grainne, Beauchamp" "table_row"
|
|
|
92 |
And I log out
|
|
|
93 |
|
|
|
94 |
# Then as a student, confirm that automatic completion checks are no longer triggered (such as after an assign submission).
|
|
|
95 |
And I am on the "Course 1" course page logged in as student1
|
|
|
96 |
Then the "Receive a grade" completion condition of "my assignment 3" overridden by "Teacher" is displayed as "done"
|
|
|
97 |
|
|
|
98 |
And I am on the "my assignment 3" "assign activity" page
|
|
|
99 |
And I press "Add submission"
|
|
|
100 |
And I set the following fields to these values:
|
|
|
101 |
| Online text | I'm the student first submission |
|
|
|
102 |
And I press "Save changes"
|
|
|
103 |
And I should see "Submitted for grading"
|
|
|
104 |
And I am on "Course 1" course homepage
|
|
|
105 |
And the "Receive a grade" completion condition of "my assignment 3" overridden by "Teacher" is displayed as "done"
|
|
|
106 |
# And Confirm that manual completion changes are still allowed.
|
|
|
107 |
And I am on "Course 1" course homepage
|
|
|
108 |
And the manual completion button of "my assignment" overridden by "Teacher" is displayed as "Done"
|
|
|
109 |
And I toggle the manual completion state of "my assignment"
|
|
|
110 |
And the manual completion button of "my assignment" is displayed as "Mark as done"
|