[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/question/type/ddwtos/tests/behat/ -> add.feature (source)

   1  @qtype @qtype_ddwtos
   2  Feature: Test creating a drag and drop into text question
   3    As a teacher
   4    In order to test my students
   5    I need to be able to create drag and drop into text questions
   6  
   7    Background:
   8      Given the following "users" exist:
   9        | username | firstname | lastname | email               |
  10        | teacher1 | T1        | Teacher1 | teacher1@moodle.com |
  11      And the following "courses" exist:
  12        | fullname | shortname | category |
  13        | Course 1 | C1        | 0        |
  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 navigate to "Question bank" node in "Course administration"
  20  
  21    @javascript
  22    Scenario: Create a drag and drop into text question
  23      When I add a "Drag and drop into text" question filling the form with:
  24        | Question name             | Drag and drop into text 001   |
  25        | Question text             | The [[1]] [[2]] on the [[3]]. |
  26        | General feedback          | The cat sat on the mat.       |
  27        | id_choices_0_answer       | cat                           |
  28        | id_choices_1_answer       | sat                           |
  29        | id_choices_2_answer       | mat                           |
  30        | id_choices_3_answer       | dog                           |
  31        | id_choices_4_answer       | table                         |
  32        | Hint 1                    | First hint                    |
  33        | Hint 2                    | Second hint                   |
  34      Then I should see "Drag and drop into text 001"


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