AutorÃa | Ultima modificación | Ver Log |
@block @block_multiblock @javascriptFeature: Dropdown presentationIn order to streamline course presentationAs a teacherI need to be able to focus content with a dropdownScenario: DropdownGiven the following "users" exist:| username | firstname | lastname | email || teacher1 | Teacher | One | teacher@example.com |When I log in as "teacher1"And I enable editing mode whilst on the dashboard# The usual 'And I add "Multiblock" block' step can fail in JS with lots of blocks present.And I add the "Multiblock" blockAnd I configure the "Multiblock" blockAnd I expand all fieldsetsAnd I set the field "Multiblock presentation style" to "Dropdown"And I set the field "Region" to "content"And I press "Save changes"And I manage the contents of "Multiblock" blockAnd I expand all fieldsetsAnd I add the HTML block fieldAnd I set the title of the HTML block to "First Item"And I set the field "Content" to "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."And I press "Save and return to manage"And I expand all fieldsetsAnd I add the HTML block fieldAnd I set the title of the HTML block to "Second Item"And I set the field "Content" to "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."And I press "Save and display"Then I should see "First Item" in the ".block_multiblock" "css_element"And I should not see "Second Item" in the ".block_multiblock" "css_element"And I should see "Lorem ipsum dolor sit" in the ".block_multiblock" "css_element"And I should not see "Ut enim ad minim veniam" in the ".block_multiblock" "css_element"# First, open the dropdown.And I click on "First Item" "link"# Second, pick the new thing.And I click on "Second Item" "link"And I should not see "Lorem ipsum dolor sit" in the ".block_multiblock" "css_element"And I should see "Ut enim ad minim veniam" in the ".block_multiblock" "css_element"