forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-73233 user: Review Start page user preferences
The "Start page" user preferences page has been reviewed to consider the new $CFG->enabledashboard setting. The "Dashboard" won't be displayed in the list if it's disabled. Besides, the default value is now calculated calling the new get_default_home_page() method.
- Loading branch information
Showing
6 changed files
with
51 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@core | ||
Feature: Enable dashboard setting | ||
In order to hide/show dashboard in navigation | ||
As an administrator | ||
I can enable or disable it | ||
|
||
Scenario: Hide setting when dashboard is disabled | ||
Given the following config values are set as admin: | ||
| enabledashboard | 0 | | ||
# 2 = User preference. | ||
| defaulthomepage | 2 | | ||
When I log in as "admin" | ||
And I navigate to "Appearance > Navigation" in site administration | ||
Then the field "Enable dashboard" matches value "0" | ||
And I should not see "Allow guest access to Dashboard" | ||
And I should not see "Dashboard" in the "Start page for users" "select" | ||
And I follow "Appearance" | ||
And I should not see "Default Dashboard page" | ||
And I follow "Preferences" in the user menu | ||
And I follow "Start page" | ||
And I should not see "Dashboard" in the "Start page" "select" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters