1 |
efrain |
1 |
@core
|
|
|
2 |
Feature: Enable dashboard setting
|
|
|
3 |
In order to hide/show dashboard in navigation
|
|
|
4 |
As an administrator
|
|
|
5 |
I can enable or disable it
|
|
|
6 |
|
|
|
7 |
Scenario: Hide setting when dashboard is disabled
|
|
|
8 |
Given the following config values are set as admin:
|
|
|
9 |
| enabledashboard | 0 |
|
|
|
10 |
# 2 = User preference.
|
|
|
11 |
| defaulthomepage | 2 |
|
|
|
12 |
When I log in as "admin"
|
|
|
13 |
And I navigate to "Appearance > Navigation" in site administration
|
|
|
14 |
Then the field "Enable Dashboard" matches value "0"
|
|
|
15 |
And I should not see "Allow guest access to Dashboard"
|
|
|
16 |
And I should not see "Dashboard" in the "Start page for users" "select"
|
|
|
17 |
And I follow "Appearance"
|
|
|
18 |
And I should not see "Default Dashboard page"
|
|
|
19 |
And I follow "Preferences" in the user menu
|
|
|
20 |
And I follow "Start page"
|
|
|
21 |
And I should not see "Dashboard" in the "Start page" "select"
|