Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@javascript @theme_boost
2
Feature: Add a block using boost theme
3
  In order to decide the blocks to display in the Add a block list for a theme
4
  As an administrator
5
  I need to define them using the unaddableblocks setting
6
 
7
  Background:
8
    Given the following "courses" exist:
9
      | fullname | shortname |
10
      | Course 1 | C1        |
11
    And I log in as "admin"
12
 
13
  Scenario: Default blocks defined in unaddableblocks settings are not displayed in the Add a block list
14
    Given I am on "Course 1" course homepage with editing mode on
15
    When I click on "Add a block" "link"
16
    Then I should not see "Administration"
17
    And I should not see "Navigation"
18
    And I should not see "Courses"
19
    And I should not see "Section links"
20
    And I should see "Online users"
21
 
22
  Scenario: Admins can change unaddable blocks using the unaddableblocks setting
23
    Given the following config values are set as admin:
24
      | unaddableblocks | settings,private_files | theme_boost|
25
    And I am on "Course 1" course homepage with editing mode on
26
    When I click on "Add a block" "link"
27
    Then I should not see "Administration"
28
    And I should not see "Private files"
29
    And I should see "Navigation"
30
    And I should see "Courses"
31
    And I should see "Section links"
32
 
33
  Scenario: If unaddableblocks settting is empty, no block is excluded from the Add a block list
34
    Given the following config values are set as admin:
35
      | unaddableblocks |  | theme_boost|
36
    And I am on "Course 1" course homepage with editing mode on
37
    When I click on "Add a block" "link"
38
    Then I should see "Administration"
39
    And I should see "Navigation"
40
    And I should see "Courses"
41
    And I should see "Section links"