+ {{! The section list is used by the content module to init the sections.}}
+
+ {{! The section need some bottom padding and margin for the dropzone.
+ Otherwise the activities will cover the area. }}
+
+ {{#editing}}
+ {{! The section header is used as a dropzone when the section is empty.}}
+
+ {{/editing}}
+ {{{cmlist}}}
+
+
+
+{{#js}}
+{{! The block should be fast to load, we only load the editor when needed.}}
+{{#editing}}
+require(['core_courseformat/local/content'], function(component) {
+ component.init('block_social_activities_section', {});
+});
+{{/editing}}
+{{/js}}
diff --git a/blocks/social_activities/tests/behat/behat_block_social_activities.php b/blocks/social_activities/tests/behat/behat_block_social_activities.php
index ae026737b266d..1e64e6e491f83 100644
--- a/blocks/social_activities/tests/behat/behat_block_social_activities.php
+++ b/blocks/social_activities/tests/behat/behat_block_social_activities.php
@@ -40,129 +40,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class behat_block_social_activities extends behat_base {
-
- /**
- * Returns the DOM node of the activity in the social activities block
- *
- * @throws ElementNotFoundException Thrown by behat_base::find
- * @param string $activityname The activity name
- * @return NodeElement
- */
- protected function get_social_block_activity_node($activityname) {
- $activityname = behat_context_helper::escape($activityname);
- $xpath = "//*[contains(concat(' ',normalize-space(@class),' '),' block_social_activities ')]//li[contains(., $activityname)]";
-
- return $this->find('xpath', $xpath);
- }
-
- /**
- * Checks that the specified activity in the social activities block should have the specified editing icon.
- *
- * This includes items in the action menu for the item (does not require it to be open)
- *
- * You should be in the course page with editing mode turned on.
- *
- * @Then /^"(?P