Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 12... Línea 12...
12
      | username | firstname | lastname | email |
12
      | username | firstname | lastname | email |
13
      | teacher1 | Teacher | 1 | teacher1@example.com |
13
      | teacher1 | Teacher | 1 | teacher1@example.com |
14
    And the following "course enrolments" exist:
14
    And the following "course enrolments" exist:
15
      | user | course | role |
15
      | user | course | role |
16
      | teacher1 | C1 | editingteacher |
16
      | teacher1 | C1 | editingteacher |
17
    And the following "question categories" exist:
-
 
18
      | contextlevel | reference | name           |
-
 
19
      | Course       | C1        | Test questions |
-
 
20
    And the following "activities" exist:
17
    And the following "activities" exist:
21
      | activity   | name   | course | idnumber |
18
      | activity   | name   | course | idnumber |
22
      | quiz       | Quiz 1 | C1     | quiz1    |
19
      | quiz       | Quiz 1 | C1     | quiz1    |
-
 
20
    And the following "question categories" exist:
-
 
21
      | contextlevel    | reference | name           |
-
 
22
      | Activity module | quiz1     | Test questions |
23
    And the following "questions" exist:
23
    And the following "questions" exist:
24
      | questioncategory | qtype     | name           | questiontext              | answer 1 |
24
      | questioncategory | qtype     | name           | questiontext              | answer 1 |
25
      | Test questions   | truefalse | First question | Answer the first question | True     |
25
      | Test questions   | truefalse | First question | Answer the first question | True     |
26
    And quiz "Quiz 1" contains the following questions:
26
    And quiz "Quiz 1" contains the following questions:
27
      | question       | page |
27
      | question       | page |
28
      | First question | 1    |
28
      | First question | 1    |
-
 
29
    And I am on the "Quiz 1" "mod_quiz > question bank" page logged in as "teacher1"
-
 
30
    And I apply question bank filter "Category" with value "Test questions"
Línea 29... Línea 31...
29
 
31
 
30
  @javascript
32
  @javascript
31
  Scenario: Question version is displayed
-
 
32
    Given I am on the "Course 1" "core_question > course question bank" page logged in as "teacher1"
33
  Scenario: Question version is displayed
33
    When I choose "Edit question" action for "First question" in the question bank
34
    When I choose "Edit question" action for "First question" in the question bank
Línea 34... Línea 35...
34
    Then I should see "Version 1"
35
    Then I should see "v1 (latest)"
35
 
36
 
36
  @javascript
-
 
37
  Scenario: Question version change when question is altered
37
  @javascript
38
    Given I am on the "Course 1" "core_question > course question bank" page logged in as "teacher1"
38
  Scenario: Question version change when question is altered
39
    When I choose "Edit question" action for "First question" in the question bank
39
    When I choose "Edit question" action for "First question" in the question bank
40
    And I should see "Version 1"
40
    And I should see "v1 (latest)"
41
    When I set the field "id_name" to "Renamed question v2"
41
    When I set the field "id_name" to "Renamed question v2"
42
    And I set the field "id_questiontext" to "edited question"
42
    And I set the field "id_questiontext" to "edited question"
43
    And I press "id_submitbutton"
43
    And I press "id_submitbutton"
44
    Then I should not see "First question"
44
    Then I should not see "First question"
45
    And I should see "Renamed question v2"
45
    And I should see "Renamed question v2"
46
    When I choose "Edit question" action for "Renamed question v2" in the question bank
46
    When I choose "Edit question" action for "Renamed question v2" in the question bank