forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-74332 mod_survey: Critical incidents dont require summary and scales
Do not show summary and scales for the survey with critical incidents. So critical incidents survey would have questions and participants only under response reports. Also corrected the heading for the Questions page.
- Loading branch information
Showing
6 changed files
with
103 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
clicktocontinue,mod_survey | ||
viewsurveyresponses,mod_survey | ||
allquestions,mod_survey |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
@mod @mod_survey @javascript | ||
Feature: A teacher navigates to response reports of students | ||
If survey activity is configured for critical students | ||
Only questions and particiats pages should be visible under response reports | ||
|
||
Background: | ||
Given the following "users" exist: | ||
| username | firstname | lastname | email | | ||
| teacher1 | Teacher | 1 | teacher1@example.com | | ||
| student1 | Student | 1 | student1@example.com | | ||
| student2 | Student | 1 | student2@example.com | | ||
And the following "courses" exist: | ||
| fullname | shortname | category | enablecompletion | | ||
| Course 1 | C1 | 0 | 1 | | ||
And the following "course enrolments" exist: | ||
| user | course | role | | ||
| teacher1 | C1 | editingteacher | | ||
| student1 | C1 | student | | ||
| student2 | C1 | student | | ||
And the following "activities" exist: | ||
| activity | name | intro | course | idnumber | section | | ||
| survey | Test survey name | Test survey description | C1 | survey1 | 1 | | ||
|
||
Scenario: Only questions and participants page should be available under response reports as teacher | ||
Given I am on the "Test survey name" "survey activity" page logged in as teacher1 | ||
And I navigate to "Settings" in current page administration | ||
And I set the following fields to these values: | ||
| Survey type | Critical incidents | | ||
And I press "Save and return to course" | ||
And I log out | ||
And I am on the "Test survey name" "survey activity" page logged in as student1 | ||
And I set the field "At what moment in class were you most engaged as a learner?" to "most engaged as student1" | ||
And I set the field "At what moment in class were you most distanced as a learner?" to "most distanced as student1" | ||
And I set the field "What action from anyone in the forums did you find most affirming or helpful?" to "most helpful student1" | ||
And I set the field "What action from anyone in the forums did you find most puzzling or confusing?" to "most confusing student1" | ||
And I set the field "What event surprised you most?" to "most surprised student1" | ||
And I press "Submit" | ||
And I press "Continue" | ||
And I log out | ||
And I am on the "Test survey name" "survey activity" page logged in as student2 | ||
And I set the field "At what moment in class were you most engaged as a learner?" to "most engaged as student2" | ||
And I set the field "At what moment in class were you most distanced as a learner?" to "most distanced as student2" | ||
And I set the field "What action from anyone in the forums did you find most affirming or helpful?" to "most helpful student2" | ||
And I set the field "What action from anyone in the forums did you find most puzzling or confusing?" to "most confusing student2" | ||
And I set the field "What event surprised you most?" to "most surprised student1" | ||
And I press "Submit" | ||
And I press "Continue" | ||
And I log out | ||
When I am on the "Test survey name" "survey activity" page logged in as teacher1 | ||
And I navigate to "Response reports" in current page administration | ||
Then I should not see "Summary" | ||
And I should not see "Scales" | ||
And I should see "Questions" | ||
And I should see "Participants" |