Skip to content

Commit 2f19fb4

Browse files
MDL-87540 dashboard: Add course overview block by default
1 parent 5f23e7e commit 2f19fb4

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

public/lib/blocklib.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2820,6 +2820,7 @@ function blocks_add_default_system_blocks() {
28202820
'recentlyaccesseditems',
28212821
],
28222822
'content' => [
2823+
'myoverview',
28232824
'timeline',
28242825
'calendar_month',
28252826
]]),

public/my/tests/behat/add_blocks.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Feature: Add blocks to dashboard page
2323
And I add the "Latest announcements" block
2424
And I turn editing mode off
2525
Then I should see "Latest announcements" in the "Latest announcements" "block"
26+
And I should see "Course overview" in the "Course overview" "block"
2627
And I should see "Timeline" in the "Timeline" "block"
2728
And I should see "Calendar" in the "Calendar" "block"
2829
And I should not see "Upcoming events"

public/my/tests/behat/reset_page.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Feature: Reset dashboard page to default
2323
And I press "Reset page to default"
2424
And I click on "Yes" "button" in the "Confirm" "dialogue"
2525
Then "Latest announcements" "block" should not exist
26+
And "Course overview" "block" should exist
2627
And "Timeline" "block" should exist
2728
And "Calendar" "block" should exist
2829
And I should not see "Reset page to default"

0 commit comments

Comments
 (0)