HEX
Server: LiteSpeed
System: Linux server.zepintelhosting.com 4.18.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User: enamadmin (1026)
PHP: 8.2.30
Disabled: exec,system,passthru,shell_exec,proc_nice,proc_terminate,pfsockopen,dl,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname,leak,apache_child_terminate
Upload Files
File: /home/enamadmin/public_html/aaelearningb/mod/survey/tests/behat/survey_critical_incidents.feature
@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 I enable "survey" "mod" plugin
    And the following "activities" exist:
      | activity | name             | course | idnumber  | template |
      | survey   | Test survey name | C1     | survey1   | 5        |

  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 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 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"
    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"