mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 20:50:21 +01:00
MDL-72567 courseformat: Have course index support activity name filters
This commit is contained in:
parent
8885e22a0b
commit
7e047dcf99
@ -73,7 +73,7 @@ class cm implements renderable {
|
|||||||
|
|
||||||
$data = (object)[
|
$data = (object)[
|
||||||
'id' => $cm->id,
|
'id' => $cm->id,
|
||||||
'name' => $cm->name,
|
'name' => external_format_string($cm->name, $cm->context, true),
|
||||||
'visible' => !empty($cm->visible),
|
'visible' => !empty($cm->visible),
|
||||||
'sectionid' => $section->id,
|
'sectionid' => $section->id,
|
||||||
'sectionnumber' => $section->section,
|
'sectionnumber' => $section->section,
|
||||||
|
@ -28,9 +28,14 @@ Feature: Course index depending on role
|
|||||||
@javascript
|
@javascript
|
||||||
Scenario: Course index is present on course and activities.
|
Scenario: Course index is present on course and activities.
|
||||||
Given I am on the "C1" "Course" page logged in as "teacher1"
|
Given I am on the "C1" "Course" page logged in as "teacher1"
|
||||||
|
Given the "multilang" filter is "on"
|
||||||
|
And the "multilang" filter applies to "content and headings"
|
||||||
|
And I am on the "C1" "Course" page logged in as "teacher1"
|
||||||
When I click on "Side panel" "button"
|
When I click on "Side panel" "button"
|
||||||
Then I should see "Open course index drawer"
|
Then I should see "Open course index drawer"
|
||||||
And I am on the "Activity sample 1" "assign activity" page
|
And I am on the "Activity sample 1" "assign activity editing" page
|
||||||
|
And I set the field "Assignment name" in the "General" "fieldset" to "<span lang=\"en\" class=\"multilang\">Activity</span><span lang=\"de\" class=\"multilang\">Aktivität</span> sample 1"
|
||||||
|
And I press "Save and display"
|
||||||
And I should see "Open course index drawer"
|
And I should see "Open course index drawer"
|
||||||
And I click on "Open course index drawer" "button"
|
And I click on "Open course index drawer" "button"
|
||||||
And I should see "Activity sample 1" in the "courseindex-content" "region"
|
And I should see "Activity sample 1" in the "courseindex-content" "region"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user