2 Feature: In an assignment, teachers can edit feedback for a students previous submission attempt
3 In order to correct feedback for a previous submission attempt
5 I need to be able to edit the feedback for a students previous submission attempt.
7 # This scenario has Atto-specific steps. See MDL-75913 for further details.
8 @javascript @editor_atto
9 Scenario: Edit feedback for a students previous attempt.
10 Given the following "courses" exist:
11 | fullname | shortname | category | groupmode |
12 | Course 1 | C1 | 0 | 1 |
13 And the following "users" exist:
14 | username | firstname | lastname | email |
15 | teacher1 | Teacher | 1 | teacher1@example.com |
16 | student1 | Student | 1 | student1@example.com |
17 | student2 | Student | 2 | student2@example.com |
18 And the following "course enrolments" exist:
19 | user | course | role |
20 | teacher1 | C1 | editingteacher |
21 | student1 | C1 | student |
22 | student2 | C1 | student |
23 And the following "activity" exists:
26 | name | Test assignment name |
27 | intro | Submit your online text |
28 | assignsubmission_onlinetext_enabled | 1 |
29 | assignfeedback_comments_enabled | 1 |
30 | submissiondrafts | 0 |
31 | attemptreopenmethod | manual |
32 And the following "mod_assign > submissions" exist:
33 | assign | user | onlinetext |
34 | Test assignment name | student2 | I'm the student first submission |
35 And I am on the "Test assignment name" Activity page logged in as teacher1
36 And I follow "View all submissions"
37 And I click on "Grade" "link" in the "Student 2" "table_row"
38 And I set the following fields to these values:
40 | Feedback comments | I'm the teacher first feedback |
41 | Allow another attempt | Yes |
42 And I press "Save changes"
43 And I click on "Edit settings" "link"
46 And I am on the "Test assignment name" Activity page logged in as student2
47 And I should see "I'm the teacher first feedback" in the "Feedback comments" "table_row"
50 And I am on the "Test assignment name" Activity page logged in as teacher1
51 And I follow "View all submissions"
52 And I click on "Grade" "link" in the "Student 2" "table_row"
53 And I click on "View a different attempt" "link"
54 And I click on "Attempt 1" "radio" in the "View a different attempt" "dialogue"
55 And I click on "View" "button"
56 And I set the following fields to these values:
58 | Feedback comments | I'm the teacher second feedback |
59 And I press "Save changes"
60 And I click on "Edit settings" "link"
63 And I am on the "Test assignment name" Activity page logged in as student2
64 Then I should see "I'm the teacher second feedback" in the "Feedback comments" "table_row"
65 And I should see "50.00"
66 And I click on ".mod-assign-history-link" "css_element"
67 And I should not see "I'm the teacher second feedback" in the "Feedback comments" "table_row"