Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 1... Línea 1...
1
@core @core_question
1
@core @core_question @javascript
2
Feature: A teacher can duplicate questions in the question bank
2
Feature: A teacher can duplicate questions in the question bank
3
  In order to efficiently expand my question bank
3
  In order to efficiently expand my question bank
4
  As a teacher
4
  As a teacher
5
  I need to be able to duplicate existing questions and make small changes
5
  I need to be able to duplicate existing questions and make small changes
Línea 12... Línea 12...
12
      | fullname | shortname | format |
12
      | fullname | shortname | format |
13
      | Course 1 | C1        | weeks  |
13
      | Course 1 | C1        | weeks  |
14
    And the following "course enrolments" exist:
14
    And the following "course enrolments" exist:
15
      | user    | course | role           |
15
      | user    | course | role           |
16
      | teacher | C1     | editingteacher |
16
      | teacher | C1     | editingteacher |
-
 
17
    And the following "activities" exist:
-
 
18
      | activity   | name    | intro              | course | idnumber |
-
 
19
      | qbank      | Qbank 1 | Question bank 1    | C1     | qbank1   |
17
    And the following "question categories" exist:
20
    And the following "question categories" exist:
18
      | contextlevel | reference | name           |
21
      | contextlevel    | reference | name           |
19
      | Course       | C1        | Test questions |
22
      | Activity module | qbank1    | Test questions |
20
    And the following "questions" exist:
23
    And the following "questions" exist:
21
      | questioncategory | qtype | name                       | questiontext                  | idnumber |
24
      | questioncategory | qtype | name                       | questiontext                  | idnumber |
22
      | Test questions   | essay | Test question to be copied | Write about whatever you want | qid      |
25
      | Test questions   | essay | Test question to be copied | Write about whatever you want | qid      |
23
    And I am on the "Course 1" "core_question > course question bank" page logged in as "teacher"
26
    And I am on the "Qbank 1" "core_question > question bank" page logged in as "teacher"
-
 
27
    And I apply question bank filter "Category" with value "Test questions"
Línea 24... Línea 28...
24
 
28
 
25
  Scenario: Duplicating a previously created question
29
  Scenario: Duplicating a previously created question
26
    When I choose "Duplicate" action for "Test question to be copied" in the question bank
30
    When I choose "Duplicate" action for "Test question to be copied" in the question bank
27
    And I set the following fields to these values:
31
    And I set the following fields to these values:
Línea 35... Línea 39...
35
 
39
 
36
  Scenario: Duplicated questions automatically get a new name suggested
40
  Scenario: Duplicated questions automatically get a new name suggested
37
    When I choose "Duplicate" action for "Test question to be copied" in the question bank
41
    When I choose "Duplicate" action for "Test question to be copied" in the question bank
Línea 38... Línea -...
38
    Then the field "Question name" matches value "Test question to be copied (copy)"
-
 
39
 
42
    Then the field "Question name" matches value "Test question to be copied (copy)"
40
  @javascript
43
 
41
  Scenario: The duplicate operation can be cancelled
44
  Scenario: The duplicate operation can be cancelled
42
    When I choose "Duplicate" action for "Test question to be copied" in the question bank
45
    When I choose "Duplicate" action for "Test question to be copied" in the question bank
43
    And I press "Cancel"
46
    And I press "Cancel"