1 |
efrain |
1 |
@mod @mod_survey @javascript
|
|
|
2 |
Feature: A teacher navigates to response reports of students
|
|
|
3 |
If survey activity is configured for critical students
|
|
|
4 |
Only questions and particiats pages should be visible under response reports
|
|
|
5 |
|
|
|
6 |
Background:
|
|
|
7 |
Given the following "users" exist:
|
|
|
8 |
| username | firstname | lastname | email |
|
|
|
9 |
| teacher1 | Teacher | 1 | teacher1@example.com |
|
|
|
10 |
| student1 | Student | 1 | student1@example.com |
|
|
|
11 |
| student2 | Student | 1 | student2@example.com |
|
|
|
12 |
And the following "courses" exist:
|
|
|
13 |
| fullname | shortname | category | enablecompletion |
|
|
|
14 |
| Course 1 | C1 | 0 | 1 |
|
|
|
15 |
And the following "course enrolments" exist:
|
|
|
16 |
| user | course | role |
|
|
|
17 |
| teacher1 | C1 | editingteacher |
|
|
|
18 |
| student1 | C1 | student |
|
|
|
19 |
| student2 | C1 | student |
|
|
|
20 |
And I enable "survey" "mod" plugin
|
|
|
21 |
And the following "activities" exist:
|
|
|
22 |
| activity | name | course | idnumber | template |
|
|
|
23 |
| survey | Test survey name | C1 | survey1 | 5 |
|
|
|
24 |
|
|
|
25 |
Scenario: Only questions and participants page should be available under response reports as teacher
|
|
|
26 |
Given I am on the "Test survey name" "survey activity" page logged in as student1
|
|
|
27 |
And I set the field "At what moment in class were you most engaged as a learner?" to "most engaged as student1"
|
|
|
28 |
And I set the field "At what moment in class were you most distanced as a learner?" to "most distanced as student1"
|
|
|
29 |
And I set the field "What action from anyone in the forums did you find most affirming or helpful?" to "most helpful student1"
|
|
|
30 |
And I set the field "What action from anyone in the forums did you find most puzzling or confusing?" to "most confusing student1"
|
|
|
31 |
And I set the field "What event surprised you most?" to "most surprised student1"
|
|
|
32 |
And I press "Submit"
|
|
|
33 |
And I press "Continue"
|
|
|
34 |
And I am on the "Test survey name" "survey activity" page logged in as student2
|
|
|
35 |
And I set the field "At what moment in class were you most engaged as a learner?" to "most engaged as student2"
|
|
|
36 |
And I set the field "At what moment in class were you most distanced as a learner?" to "most distanced as student2"
|
|
|
37 |
And I set the field "What action from anyone in the forums did you find most affirming or helpful?" to "most helpful student2"
|
|
|
38 |
And I set the field "What action from anyone in the forums did you find most puzzling or confusing?" to "most confusing student2"
|
|
|
39 |
And I set the field "What event surprised you most?" to "most surprised student1"
|
|
|
40 |
And I press "Submit"
|
|
|
41 |
And I press "Continue"
|
|
|
42 |
When I am on the "Test survey name" "survey activity" page logged in as teacher1
|
|
|
43 |
And I navigate to "Response reports" in current page administration
|
|
|
44 |
Then I should not see "Summary"
|
|
|
45 |
And I should not see "Scales"
|
|
|
46 |
And I should see "Questions"
|
|
|
47 |
And I should see "Participants"
|