+ {{#showtabsnavigation}}
+
+ {{/showtabsnavigation}}
+
+ {{#tabs}}
+
+ {{/tabs}}
+
+
+
+{{#js}}
+ require(['core/dynamic_tabs'], function(Tabs) {
+ Tabs.init();
+ M.util.js_complete('core_dynamic_tabs_init');
+ });
+{{/js}}
diff --git a/lib/tests/behat/behat_general.php b/lib/tests/behat/behat_general.php
index 237d653a8cf..494612582a6 100644
--- a/lib/tests/behat/behat_general.php
+++ b/lib/tests/behat/behat_general.php
@@ -2084,4 +2084,17 @@ EOF;
public function i_mark_this_test_as_long_running(int $factor = 2): void {
$this->set_test_timeout_factor($factor);
}
+
+ /**
+ * Click on a dynamic tab to load its content
+ *
+ * @Given /^I click on the "(?P