Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@core @core_block
2
Feature: Block visibility
3
  In order to configure blocks visibility
4
  As a teacher
5
  I need to show and hide blocks on a page
6
 
7
  Background:
8
    Given the following "courses" exist:
9
      | fullname | shortname | category |
10
      | Course 1 | C1 | 0 |
11
    And the following "blocks" exist:
12
      | blockname     | contextlevel | reference | pagetypepattern | defaultregion |
13
      | search_forums | Course       | C1        | course-view-*   | side-pre      |
14
    And I log in as "admin"
15
    And I am on "Course 1" course homepage with editing mode on
16
 
17
  @javascript
18
  Scenario: Hiding all blocks on the page should remove the column they're in
19
    When I open the "Search forums" blocks action menu
20
    And I click on "Configure Search forums block" "link" in the "Search forums" "block"
21
    And I set the field "Region" to "Right"
22
    And I press "Save changes"
23
    And I turn editing mode off
24
    Then ".empty-region-side-post" "css_element" should not exist in the "body" "css_element"
25
    And I turn editing mode on
26
    And I open the "Search forums" blocks action menu
27
    And I click on "Hide Search forums block" "link" in the "Search forums" "block"
28
    And I turn editing mode off
29
    And ".empty-region-side-post" "css_element" should exist in the "body" "css_element"