Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@qtype @qtype_description
2
Feature: Test editing a Description question
3
  As a teacher
4
  In order to be able to update my Description question
5
  I need to edit them
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username |
10
      | teacher  |
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
      | teacher | C1     | editingteacher |
17
    And the following "question categories" exist:
18
      | contextlevel | reference | name           |
19
      | Course       | C1        | Test questions |
20
    And the following "questions" exist:
21
      | questioncategory | qtype       | name            | template |
22
      | Test questions   | description | description-001 | info     |
23
 
24
  Scenario: Edit a Description question
25
    When I am on the "description-001" "core_question > edit" page logged in as teacher
26
    And I set the following fields to these values:
27
      | Question name | |
28
    And I press "id_submitbutton"
29
    Then I should see "You must supply a value here."
30
    When I set the following fields to these values:
31
      | Question name    | Edited description-001 name |
32
    And I press "id_submitbutton"
33
    Then I should see "Edited description-001 name"