Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@javascript @theme_classic
2
Feature: Add a block using classic theme
3
  In order to check the blocks to display in the Add a block list for a them
4
  As an administrator
5
  I need to confirm the unaddableblocks setting is empty for classic.
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: All the expected blocks are displayed in the Add a block list for classic
14
    Given I am on "Course 1" course homepage with editing mode on
15
    When I click on "Add a block" "select"
16
    Then I should see "Administration"
17
    And I should see "Navigation"
18
    And I should see "Courses"
19
    And I should see "Section links"
20
 
21
  Scenario: Admins can change unaddable blocks using the unaddableblocks setting for classic
22
    Given the following config values are set as admin:
23
      | unaddableblocks | online_users,private_files,settings | theme_classic|
24
    And I am on "Course 1" course homepage with editing mode on
25
    When I click on "Add a block" "select"
26
    Then I should not see "Online users"
27
    And I should not see "Private files"
28
    # The settings block is defined as required block for classic, so it will be displayed always.
29
    And I should see "Administration"
30
    And I should see "Navigation"
31
    And I should see "Courses"
32
    And I should see "Section links"