[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/mod/survey/tests/behat/ -> survey_types.feature (source)

   1  @mod @mod_survey
   2  Feature: A teacher can set three types of survey activity
   3    In order to use verified survey instruments
   4    As a teacher
   5    I need to set survey activities and select which survey type suits my needs
   6  
   7    Scenario: Switching between the three survey types
   8      Given the following "users" exist:
   9        | username | firstname | lastname | email |
  10        | teacher1 | Teacher | 1 | teacher1@example.com |
  11      And the following "courses" exist:
  12        | fullname | shortname | format |
  13        | Course 1 | C1 | topics |
  14      And the following "course enrolments" exist:
  15        | user | course | role |
  16        | teacher1 | C1 | editingteacher |
  17      And I log in as "teacher1"
  18      And I follow "Course 1"
  19      And I turn editing mode on
  20      When I add a "Survey" to section "1" and I fill the form with:
  21        | Name | Test survey name |
  22        | Survey type | ATTLS (20 item version) |
  23        | Description | Test survey description |
  24      And I follow "Test survey name"
  25      Then I should see "Attitudes Towards Thinking and Learning"
  26      And I follow "Edit settings"
  27      And I set the following fields to these values:
  28        | Survey type | Critical incidents |
  29      And I press "Save and display"
  30      And I should see "At what moment in class were you most engaged as a learner?"
  31      And I follow "Edit settings"
  32      And I set the following fields to these values:
  33        | Survey type | COLLES (Preferred and Actual) |
  34      And I press "Save and display"
  35      And I should see "In this online unit..."
  36      And I should see "my learning focuses on issues that interest me."


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1