1 |
efrain |
1 |
@mod @mod_assign @assignfeedback @assignfeedback_comments
|
|
|
2 |
Feature: In an assignment, teachers can provide feedback comments on student submissions
|
|
|
3 |
In order to provide feedback to students on their assignments
|
|
|
4 |
As a teacher,
|
|
|
5 |
I need to create feedback comments against their submissions.
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "courses" exist:
|
|
|
9 |
| fullname | shortname | category | groupmode |
|
|
|
10 |
| Course 1 | C1 | 0 | 0 |
|
|
|
11 |
And the following "users" exist:
|
|
|
12 |
| username | firstname | lastname | email |
|
|
|
13 |
| teacher1 | Teacher | 1 | teacher1@example.com |
|
|
|
14 |
| student1 | Student | 1 | student1@example.com |
|
|
|
15 |
And the following "course enrolments" exist:
|
|
|
16 |
| user | course | role |
|
|
|
17 |
| teacher1 | C1 | teacher |
|
|
|
18 |
| student1 | C1 | student |
|
|
|
19 |
|
|
|
20 |
@javascript @skip_chrome_zerosize
|
|
|
21 |
Scenario: Teachers should be able to add and remove feedback comments via the quick grading interface
|
|
|
22 |
Given the following "activities" exist:
|
|
|
23 |
| activity | course | name | assignsubmission_onlinetext_enabled | assignfeedback_comments_enabled |
|
|
|
24 |
| assign | C1 | Test assignment name | 1 | 1 |
|
|
|
25 |
And the following "mod_assign > submissions" exist:
|
|
|
26 |
| assign | user | onlinetext |
|
|
|
27 |
| Test assignment name | student1 | I'm the student1 submission |
|
|
|
28 |
And I am on the "Test assignment name" Activity page logged in as teacher1
|
|
|
29 |
And I follow "View all submissions"
|
|
|
30 |
Then I click on "Quick grading" "checkbox"
|
|
|
31 |
And I set the field "Feedback comments" to "Feedback from teacher."
|
|
|
32 |
And I press "Save all quick grading changes"
|
|
|
33 |
And I should see "The grade changes were saved"
|
|
|
34 |
And I press "Continue"
|
|
|
35 |
And I should see "Feedback from teacher."
|
|
|
36 |
And I set the field "Feedback comments" to ""
|
|
|
37 |
And I press "Save all quick grading changes"
|
|
|
38 |
And I should see "The grade changes were saved"
|
|
|
39 |
And I press "Continue"
|
|
|
40 |
And I should not see "Feedback from teacher."
|