[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

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

   1  @qtype @qtype_essay
   2  Feature: Test creating an Essay question
   3    As a teacher
   4    In order to test my students
   5    I need to be able to create an Essay question
   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    Scenario: Create an Essay question with Response format set to 'HTML editor'
  22      When I add a "Essay" question filling the form with:
  23        | Question name            | essay-001                      |
  24        | Question text            | Write an essay with 500 words. |
  25        | General feedback         | This is general feedback       |
  26        | Response format          | HTML editor                    |
  27      Then I should see "essay-001"
  28  
  29    Scenario: Create an Essay question with Response format set to 'HTML editor with the file picker'
  30      When I add a "Essay" question filling the form with:
  31        | Question name            | essay-002                      |
  32        | Question text            | Write an essay with 500 words. |
  33        | General feedback         | This is general feedback       |
  34        | Response format          | HTML editor                    |
  35      Then I should see "essay-002"


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