- {{#default}}
- {{>core_course/chooser_item}}
- {{/default}}
+
+
+
+
+
+
+ {{#favourites}}
+ {{>core_course/chooser_item}}
+ {{/favourites}}
+
+
+
+
+
+
+ {{#recommended}}
+ {{>core_course/chooser_item}}
+ {{/recommended}}
+
+
+
+
+
+
+ {{#default}}
+ {{>core_course/chooser_item}}
+ {{/default}}
+
+
diff --git a/course/tests/behat/activity_chooser.feature b/course/tests/behat/activity_chooser.feature
index 9d3f2b90053..b8be7a9b7f2 100644
--- a/course/tests/behat/activity_chooser.feature
+++ b/course/tests/behat/activity_chooser.feature
@@ -53,3 +53,9 @@ Feature: Display and choose from the available activities in course
And "help" "core_course > Activity chooser screen" should not exist
And "Back" "button" should not exist in the "modules" "core_course > Activity chooser screen"
And I should not see "The assignment activity module enables a teacher to communicate tasks, collect work and provide grades and feedback." in the "Add an activity or resource" "dialogue"
+
+ # Currently stubbed out in MDL-67321 as further issues will add more tabs.
+ Scenario: Navigate between module tabs
+ Given I open the activity chooser
+ And I should see "Activities" in the "Add an activity or resource" "dialogue"
+ Then I should see "Forum" in the "default" "core_course > Activity chooser tab"
diff --git a/course/tests/behat/behat_course.php b/course/tests/behat/behat_course.php
index 8453529c71f..ed41a46fad9 100644
--- a/course/tests/behat/behat_course.php
+++ b/course/tests/behat/behat_course.php
@@ -54,6 +54,11 @@ class behat_course extends behat_base {
"%core_course/activityChooser%//*[@data-region=%locator%][contains(concat(' ', @class, ' '), ' carousel-item ')]"
]
),
+ new behat_component_named_selector(
+ 'Activity chooser tab', [
+ "%core_course/activityChooser%//*[@data-region=%locator%][contains(concat(' ', @class, ' '), ' tab-pane ')]"
+ ]
+ ),
];
}
diff --git a/lang/en/course.php b/lang/en/course.php
index 2573793f933..ae9eefb5622 100644
--- a/lang/en/course.php
+++ b/lang/en/course.php
@@ -26,7 +26,10 @@ $string['aria:coursecategory'] = 'Course category';
$string['aria:courseimage'] = 'Course image';
$string['aria:courseshortname'] = 'Course short name';
$string['aria:coursename'] = 'Course name';
+$string['aria:defaulttab'] = 'The default modules';
$string['aria:favourite'] = 'Course is starred';
+$string['aria:favouritestab'] = 'Your starred modules';
+$string['aria:recommendedtab'] = 'The recommended modules';
$string['coursealreadyfinished'] = 'Course already finished';
$string['coursenotyetstarted'] = 'The course has not yet started';
$string['coursenotyetfinished'] = 'The course has not yet finished';
diff --git a/lang/en/moodle.php b/lang/en/moodle.php
index 5010450bcb5..4995dc78a97 100644
--- a/lang/en/moodle.php
+++ b/lang/en/moodle.php
@@ -1637,6 +1637,7 @@ $string['readme'] = 'README';
$string['recentactivity'] = 'Recent activity';
$string['recentactivityreport'] = 'Full report of recent activity...';
$string['recipientslist'] = 'Recipients list';
+$string['recommended'] = 'Recommended';
$string['recreatedcategory'] = 'Recreated category {$a}';
$string['redirect'] = 'Redirect';
$string['reducesections'] = 'Reduce the number of sections';