Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@qbank @qbank_editquestion
2
Feature: Use the qbank plugin manager page for editquestion
3
  In order to check the plugin behaviour with enable and disable
4
 
5
  Background:
6
    Given the following "courses" exist:
7
      | fullname | shortname | category |
8
      | Course 1 | C1        | 0        |
9
    And the following "activities" exist:
10
      | activity   | name      | course | idnumber |
11
      | quiz       | Test quiz | C1     | quiz1    |
12
    And the following "questions" exist:
1441 ariadna 13
      | questioncategory      | qtype     | name                  | questiontext              |
14
      | Default for Test quiz | truefalse | First question        | Answer the first question |
15
      | Default for Test quiz | truefalse | First question second | Answer the first question |
1 efrain 16
 
17
  Scenario: Enable/disable edit question columns from the base view
18
    Given I log in as "admin"
19
    When I navigate to "Plugins > Question bank plugins > Manage question bank plugins" in site administration
20
    And I should see "Edit question"
21
    And I click on "Disable" "link" in the "Edit question" "table_row"
22
    And I am on the "Test quiz" "mod_quiz > question bank" page
23
    Then I should not see "Status"
24
    And the "Edit question" action should not exist for the "First question" question in the question bank
25
    And the "Duplicate" action should not exist for the "First question" question in the question bank
26
    And I navigate to "Plugins > Question bank plugins > Manage question bank plugins" in site administration
27
    And I click on "Enable" "link" in the "Edit question" "table_row"
28
    And I am on the "Test quiz" "mod_quiz > question bank" page
29
    Then I should see "Status"
30
    And the "Edit question" action should exist for the "First question" question in the question bank
31
    And the "Duplicate" action should exist for the "First question" question in the question bank