diff --git a/admin/tests/behat/purge_caches.feature b/admin/tests/behat/purge_caches.feature index 7f1e80560c4..15d522bb4cd 100644 --- a/admin/tests/behat/purge_caches.feature +++ b/admin/tests/behat/purge_caches.feature @@ -16,12 +16,12 @@ Feature: Purge caches Scenario: Purge selected caches Given I should not see "Selected caches were purged" When I set the field "Themes" to "1" - And I press "Purge selected caches" + And I click on "Purge selected caches" "button" in the "#fitem_id_purgeselectedcaches" "css_element" Then I should see "The selected caches were purged" Scenario: Purge selected caches without selecting any caches Given I should not see "Select one or more caches to purge" - When I press "Purge selected caches" + And I click on "Purge selected caches" "button" in the "#fitem_id_purgeselectedcaches" "css_element" Then I should not see "The selected caches were purged" And I should see "Select one or more caches to purge" diff --git a/course/tests/behat/activities_edit_completion.feature b/course/tests/behat/activities_edit_completion.feature index c601abf9768..993c68df477 100644 --- a/course/tests/behat/activities_edit_completion.feature +++ b/course/tests/behat/activities_edit_completion.feature @@ -30,6 +30,7 @@ Feature: Edit completion settings of an activity When I am on the TestPage "Page Activity editing" page And I expand all fieldsets And I press "Unlock completion options" + And I expand all fieldsets Then I should see "Completion options unlocked" And I set the field "Completion tracking" to "Students can manually mark the activity as completed" And I press "Save and display" diff --git a/course/tests/behat/course_collapse_sections.feature b/course/tests/behat/course_collapse_sections.feature index 96ac0f5980e..ec81055a521 100644 --- a/course/tests/behat/course_collapse_sections.feature +++ b/course/tests/behat/course_collapse_sections.feature @@ -172,8 +172,8 @@ Feature: Collapse course sections When I navigate to "Settings" in current page administration And I expand all fieldsets And I set the following fields to these values: - | Format | Weekly format | | Course layout | Show one section per page | + | Format | Weekly format | And I press "Save and display" And "[data-toggle=collapse]" "css_element" should not exist in the "region-main" "region" And I click on "8 May - 14 May" "link" in the "region-main" "region" diff --git a/lib/editor/atto/plugins/h5p/lib.php b/lib/editor/atto/plugins/h5p/lib.php index 5aa345781e7..6b9da45f324 100644 --- a/lib/editor/atto/plugins/h5p/lib.php +++ b/lib/editor/atto/plugins/h5p/lib.php @@ -80,7 +80,6 @@ function atto_h5p_strings_for_js() { ); $PAGE->requires->strings_for_js($strings, 'atto_h5p'); + $PAGE->requires->strings_for_js(['expand', 'collapse'], 'moodle'); $PAGE->requires->js(autoloader::get_h5p_core_library_url('js/h5p-resizer.js')); } - - diff --git a/lib/editor/atto/plugins/h5p/yui/build/moodle-atto_h5p-button/moodle-atto_h5p-button-debug.js b/lib/editor/atto/plugins/h5p/yui/build/moodle-atto_h5p-button/moodle-atto_h5p-button-debug.js index 98d1d42fbac..9e892bc5abe 100644 --- a/lib/editor/atto/plugins/h5p/yui/build/moodle-atto_h5p-button/moodle-atto_h5p-button-debug.js +++ b/lib/editor/atto/plugins/h5p/yui/build/moodle-atto_h5p-button/moodle-atto_h5p-button-debug.js @@ -93,9 +93,29 @@ var CSS = { '{{/if}}' + '' + '{{#if canUpload}}' + - '
' + - '{{get_string "h5poptions" component}}' + - '