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_comment
2
Feature: Use the qbank plugin manager page for comment
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 "question categories" exist:
1441 ariadna 13
      | contextlevel    | reference | name           |
14
      | Activity module | quiz1     | Test questions |
1 efrain 15
    And the following "questions" exist:
16
      | questioncategory | qtype     | name           | questiontext              |
17
      | Test questions   | truefalse | First question | Answer the first question |
18
 
19
  @javascript
20
  Scenario: Enable/disable comment column from the base view
21
    Given I log in as "admin"
22
    When I navigate to "Plugins > Question bank plugins > Manage question bank plugins" in site administration
23
    And I should see "Question comments"
24
    And I click on "Disable" "link" in the "Question comments" "table_row"
25
    And I am on the "Test quiz" "mod_quiz > question bank" page
1441 ariadna 26
    And I apply question bank filter "Category" with value "Test questions"
1 efrain 27
    Then "#categoryquestions .header.commentcount" "css_element" should not be visible
28
    And I navigate to "Plugins > Question bank plugins > Manage question bank plugins" in site administration
29
    And I click on "Enable" "link" in the "Question comments" "table_row"
30
    And I am on the "Test quiz" "mod_quiz > question bank" page
1441 ariadna 31
    And I apply question bank filter "Category" with value "Test questions"
1 efrain 32
    And "#categoryquestions .header.commentcount" "css_element" should be visible