1 |
efrain |
1 |
@mod @mod_feedback
|
|
|
2 |
Feature: Non anonymous feedback with multiple submissions
|
|
|
3 |
In order to modify feedback response
|
|
|
4 |
As a student
|
|
|
5 |
I need to be able to see previous response when I re-submit feedback
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
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 |
|
|
|
16 |
| Course 1 | C1 |
|
|
|
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 |
|
|
|
25 |
|
|
|
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:
|
|
|
32 |
| Question | first |
|
|
|
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:
|
|
|
37 |
| Question | second |
|
|
|
38 |
| Label | shorttext2 |
|
|
|
39 |
| Maximum characters accepted | 200 |
|
|
|
40 |
And I log out
|
|
|
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:
|
|
|
46 |
| first | 111 |
|
|
|
47 |
And I press "Next"
|
|
|
48 |
And I set the following fields to these values:
|
|
|
49 |
| second | 222 |
|
|
|
50 |
And I press "Submit your answers"
|
|
|
51 |
And I log out
|
|
|
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"
|
|
|
57 |
And I press "Next"
|
|
|
58 |
And the field "second" matches value "222"
|
|
|
59 |
And I set the following fields to these values:
|
|
|
60 |
| second | 333 |
|
|
|
61 |
And I press "Submit your answers"
|