Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@block @block_glossary_random @javascript @addablocklink
2
Feature: Add the glossary random block when main feature is enabled
3
    In order to add the glossary random block to my course
4
    As a teacher
5
    It should be added to courses only if the glossary module is enabled.
6
 
7
  Background:
8
    Given the following "courses" exist:
9
      | fullname | shortname | format |
10
      | Course 1 | C1        | topics |
11
    And I am on the "C1" "course" page logged in as "admin"
12
 
13
  Scenario: The glossary random block can be added when glossary module is enabled
14
    Given I turn editing mode on
15
    When I click on "Add a block" "link"
16
    Then I should see "Random glossary entry"
17
 
18
  Scenario: The glossary random block cannot be added when glossary module is disabled
19
    Given I navigate to "Plugins > Activity modules > Manage activities" in site administration
20
    And I click on "Disable Glossary" "icon" in the "Glossary" "table_row"
21
    And I am on "Course 1" course homepage with editing mode on
22
    When I click on "Add a block" "link"
23
    Then I should not see "Random glossary entry"