2 Feature: Non anonymous feedback with multiple submissions
3 In order to modify feedback response
5 I need to be able to see previous response when I re-submit feedback
8 Given the following "users" exist:
9 | username | firstname | lastname |
10 | user1 | Username | 1 |
11 | user2 | Username | 2 |
12 | teacher | Teacher | 3 |
13 | manager | Manager | 4 |
14 And the following "courses" exist:
15 | fullname | shortname |
17 And the following "course enrolments" exist:
18 | user | course | role |
19 | user1 | C1 | student |
20 | user2 | C1 | student |
21 | teacher | C1 | editingteacher |
22 And the following "activities" exist:
23 | activity | name | course | idnumber | anonymous | publish_stats | multiple_submit | section |
24 | feedback | Course feedback | C1 | feedback1 | 2 | 1 | 1 | 0 |
26 Scenario: Completing a feedback second time
27 When I log in as "teacher"
28 And I am on "Course 1" course homepage
29 And I follow "Course feedback"
30 And I click on "Edit questions" "link" in the "[role=main]" "css_element"
31 And I add a "Short text answer" question to the feedback with:
33 | Label | shorttext1 |
34 | Maximum characters accepted | 200 |
35 And I add a page break to the feedback
36 And I add a "Short text answer" question to the feedback with:
38 | Label | shorttext2 |
39 | Maximum characters accepted | 200 |
41 And I log in as "user1"
42 And I am on "Course 1" course homepage
43 And I follow "Course feedback"
44 And I follow "Answer the questions"
45 And I set the following fields to these values:
48 And I set the following fields to these values:
50 And I press "Submit your answers"
52 And I log in as "user1"
53 And I am on "Course 1" course homepage
54 And I follow "Course feedback"
55 And I follow "Answer the questions"
56 Then the field "first" matches value "111"
58 And the field "second" matches value "222"
59 And I set the following fields to these values:
61 And I press "Submit your answers"