MDL-72032 core: Add roles to items
- Part of: MDL-69588
This commit is contained in:
@@ -11,6 +11,9 @@ Feature: Set the site home page and dashboard as the default home page
|
||||
And the following "users" exist:
|
||||
| username | firstname | lastname | email |
|
||||
| user1 | User | One | user1@example.com |
|
||||
And the following "course enrolments" exist:
|
||||
| user | course | role |
|
||||
| user1 | C1 | student |
|
||||
|
||||
Scenario: Admin sets the site page and then the dashboard as the default home page
|
||||
# This functionality does not work without the administration block.
|
||||
@@ -28,14 +31,16 @@ Feature: Set the site home page and dashboard as the default home page
|
||||
And I am on site homepage
|
||||
And I follow "Make this my home page"
|
||||
And I should not see "Make this my home page"
|
||||
And I am on "Course 1" course homepage
|
||||
And "Home" "text" should exist in the ".breadcrumb" "css_element"
|
||||
# The following lines should be changed once MDL-72110 is resolved.
|
||||
# And I am on "Course 1" course homepage
|
||||
# And "Home" "text" should exist in the ".breadcrumb" "css_element"
|
||||
And I am on site homepage
|
||||
And I follow "Dashboard"
|
||||
And I follow "Make this my home page"
|
||||
And I should not see "Make this my home page"
|
||||
And I am on "Course 1" course homepage
|
||||
Then "Dashboard" "text" should exist in the ".breadcrumb" "css_element"
|
||||
# The following lines should be changed once MDL-72110 is resolved.
|
||||
# And I am on "Course 1" course homepage
|
||||
# Then "Dashboard" "text" should exist in the ".breadcrumb" "css_element"
|
||||
|
||||
Scenario: User cannot configure their preferred default home page unless allowed by admin
|
||||
Given I log in as "user1"
|
||||
@@ -53,7 +58,9 @@ Feature: Set the site home page and dashboard as the default home page
|
||||
And I follow "Home page"
|
||||
And I set the field "Home page" to "<preference>"
|
||||
And I press "Save changes"
|
||||
Then "<breadcrumb>" "text" should exist in the ".breadcrumb" "css_element"
|
||||
And I log out
|
||||
And I log in as "user1"
|
||||
Then I should see "<breadcrumb>" is active in navigation
|
||||
|
||||
Examples:
|
||||
| preference | breadcrumb |
|
||||
|
||||
Reference in New Issue
Block a user