MDL-63241 calendar: Add missing table alias in SQL query.
[moodle.git] / blocks / tests / behat / hide_blocks.feature
blobdb11e3f529da20e96d32c30eb99a55ed21465dc8
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
7   Background:
8     Given the following "courses" exist:
9       | fullname | shortname | category |
10       | Course 1 | C1 | 0 |
11     And I log in as "admin"
12     And I am on "Course 1" course homepage with editing mode on
14   @javascript
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"