2 Feature: Block visibility
3 In order to configure blocks visibility
5 I need to show and hide blocks on a page
8 Given the following "courses" exist:
9 | fullname | shortname | category |
11 And I log in as "admin"
12 And I am on "Course 1" course homepage with editing mode on
15 Scenario: Hiding all blocks on the page should remove the column they're in
16 Given I add the "Search forums" block
17 And I open the "Search forums" blocks action menu
18 And I click on "Configure Search forums block" "link" in the "Search forums" "block"
19 And I set the field "Region" to "Right"
20 And I press "Save changes"
21 And I turn editing mode off
22 And ".empty-region-side-post" "css_element" should not exist in the "body" "css_element"
23 And I turn editing mode on
24 And I open the "Search forums" blocks action menu
25 And I click on "Hide Search forums block" "link" in the "Search forums" "block"
26 And I follow "Turn editing off"
27 And ".empty-region-side-post" "css_element" should exist in the "body" "css_element"