X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/blocks/tests/behat
home
/
cbholdings
/
pasukulu
/
blocks
/
tests
/
behat
/
📁
..
📄
add_blocks.feature
(931 B)
📄
add_blocks_overridden.feature
(3.76 KB)
📄
add_blocks_overridden_disabled.feature
(5.48 KB)
📄
behat_blocks.php
(8.24 KB)
📄
configure_block_throughout_site.feature
(3.03 KB)
📄
delete_block.feature
(1.42 KB)
📄
hidden_block_region.feature
(2.39 KB)
📄
hide_blocks.feature
(1.27 KB)
📄
manage_blocks.feature
(2.43 KB)
📄
move_blocks.feature
(1.73 KB)
📄
restrict_available_blocks.feature
(1.64 KB)
📄
return_block_original_state.feature
(1.98 KB)
Editing: hidden_block_region.feature
@core @core_block Feature: Show hidden blocks in a docked block region when editing In order to edit blocks in a hidden region As a teacher I need to be able to see the blocks when editing is on Background: Given the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | And the following "course enrolments" exist: | user | course | role | | admin | C1 | editingteacher | And the following "blocks" exist: | blockname | contextlevel | reference | pagetypepattern | defaultregion | | search_forums | Course | C1 | course-view-* | side-pre | | news_items | Course | C1 | course-view-* | side-pre | | calendar_upcoming | Course | C1 | course-view-* | side-pre | | recent_activity | Course | C1 | course-view-* | side-pre | And I log in as "admin" And I am on "Course 1" course homepage with editing mode on # Hide all the blocks in the non-default region And I configure the "Search forums" block And I set the following fields to these values: | Visible | No | And I click on "Save changes" "button" And I configure the "Latest announcements" block And I set the following fields to these values: | Visible | No | And I click on "Save changes" "button" And I configure the "Upcoming events" block And I set the following fields to these values: | Visible | No | And I click on "Save changes" "button" And I configure the "Recent activity" block And I set the following fields to these values: | Visible | No | When I click on "Save changes" "button" # Editing is on so they should be visible Then I should see "Search forums" And I should see "Latest announcements" And I should see "Upcoming events" And I should see "Recent activity" And I turn editing mode off # Editing is off, so they should no longer be visible And I should not see "Search forums" And I should not see "Latest announcements" And I should not see "Upcoming events" And I should not see "Recent activity" @javascript Scenario: Check that a region with only hidden blocks is not docked in editing mode (javascript enabled) Scenario: Check that a region with only hidden blocks is not docked in editing mode (javascript disabled)
Upload File
Create Folder