AutorÃa | Ultima modificación | Ver Log |
@block @block_multiblockFeature: The block can have administrator set defaultsIn order to be customize the multiblockAs an adminI need to be able to assign some site wide defaultsBackground:Given the following "users" exist:| username | firstname | lastname | email || teacher1 | Teacher | One | teacher@example.com || student1 | Student | User | student1@example.com |And the following "courses" exist:| fullname | shortname || Course 1 | C1 |And the following "course enrolments" exist:| user | course | role || teacher1 | C1 | editingteacher || student1 | C1 | student |Scenario: Test setting the multiblock title.Given the following config values are set as admin:| title | Course Toolkit | block_multiblock |When I log in as "teacher1"And I am on "Course 1" course homepage with editing mode onAnd I add the "Multiblock" blockThen I should see "Course Toolkit"Scenario: Test setting the multiblock presnetation style.Given the following config values are set as admin:| presentation | 0 | block_multiblock || subblock | calendar_month | block_multiblock |When I log in as "teacher1"And I am on "Course 1" course homepage with editing mode onAnd I add the "Multiblock" blockThen ".multiblock.multiblock-accordion" "css_element" should existScenario: Test setting the default blocks.Given the following config values are set as admin:| subblock | calendar_month | block_multiblock |When I log in as "teacher1"And I am on "Course 1" course homepage with editing mode onAnd I add the "Multiblock" blockThen "Calendar" "text" should exist in the "Multiblock" "block"