2 Feature: Set the site home page and dashboard as the default home page
3 In order to set a page as my default home page
5 I need to go to the page I want and set it as my home page
8 Given the following "courses" exist:
9 | fullname | shortname | category | groupmode |
10 | Course 1 | C1 | 0 | 1 |
12 Scenario: Admin sets the site page and then the dashboard as the default home page
13 Given I log in as "admin"
14 And I navigate to "Navigation" node in "Site administration > Appearance"
15 And I set the field "Default home page for users" to "User preference"
16 And I press "Save changes"
17 And I am on site homepage
18 And I follow "Make this my default home page"
19 And I should not see "Make this my default home page"
20 And I follow "Course 1"
21 And "//ul[@class='breadcrumb']/li/a[text()='Home']" "xpath_element" should exist
22 And I am on site homepage
23 And I follow "Dashboard"
24 And I follow "Make this my default home page"
25 And I should not see "Make this my default home page"
26 And I am on site homepage
27 When I follow "Course 1"
28 Then "//ul[@class='breadcrumb']/li/a[text()='Dashboard']" "xpath_element" should exist