Skip to content

Mdl 83869 main#2

Open
ferranrecio wants to merge 2 commits intomainfrom
MDL-83869-main
Open

Mdl 83869 main#2
ferranrecio wants to merge 2 commits intomainfrom
MDL-83869-main

Conversation

@ferranrecio
Copy link
Owner

Pull request to support MDL-83869 review.

And I am on fixture page "/lib/tests/behat/fixtures/collapsable_section_output_testpage.php"

Scenario: Collapsable sections can be opened and closed
Given I should not see "Dialog content"
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This step is moved from background to the first scenario to test it only ones.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for changing it. I know it's a little thing, but improves the performance a bit :-)

Scenario: Collapsable sections can be controlled via javascript
# Toggle.
Given I should not see "This is the javascript controls content." in the "jscontrols" "region"
When I click on "Toggle" "button" in the "jscontrols" "region"
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"when" added


const section = CollapsableSection.instanceFromSelector('#MyCollapsableSection');

if (section.isVisible()) {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo on isVisible fixed

### Events

The collapsable sections component also includes a JavaScript module for handling events. This module wraps the standard Bootstrap collapsable events and provides custom event types for collapsable sections.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Events list added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants