[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/user/tests/behat/ -> set_default_homepage.feature (source)

   1  @core @core_user
   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
   4    As a user
   5    I need to go to the page I want and set it as my home page
   6  
   7    Background:
   8      Given the following "courses" exist:
   9        | fullname | shortname | category | groupmode |
  10        | Course 1 | C1 | 0 | 1 |
  11  
  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 "Home" "text" should exist in the ".breadcrumb-nav" "css_element"
  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 "Dashboard" "text" should exist in the ".breadcrumb-nav" "css_element"


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1