Commit be7f9f14 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1690273- Test for footer headings display"

parents 9e6d03ca 0827a563
......@@ -26,6 +26,7 @@ define ("LOCATOR_CONSTANTS", json_encode(array(
'File download heading 1' => array(".filedownload-item:nth-of-type(1)>h4", "css_element"),
'File download heading 2' => array(".filedownload-item:nth-of-type(2)>h4", "css_element"),
'Filelist table' => array(".filelist", "css_element"),
'Footer' => array(".footer", "css_element"),
'Pages and Collections boxes' => array(".grouppageswrap", "css_element"),
'Groups sub-menu' => array(".groups", "css_element"),
'Admin Groups sub-menu' => array(".managegroups ul", "css_element"),
......
@javascript @core @core_administration
Feature: Check footer settings and headings correctly displayed
As an admin I want to know
Given I set the footer headings to be visible
When a user logs in, they see the correct headings.
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |
Scenario: User can see correct headings in footer by default
#log in as a normal user
Given I log in as "UserA" with password "Kupuh1pa!"
And I click on "Legal" in the "Footer" property
And I should see "Displayed are the current privacy statements and terms and conditions."
And I am on homepage
And I click on "About"
And I am on homepage
And I click on "Contact us"
And I am on homepage
# test click is possible - opens a new window, which we're not checking at this stage
And I click on "Help"
Scenario: Admin changes settings which are visible to user
#log in as a admin user
Given I log in as "admin" with password "Kupuh1pa!"
And I choose "Menus" in "Configure site" from administration menu
And I disable the following switches:
| Legal |
| About |
| Contact us |
| External manual |
And I press "Save changes"
And I log out
#Go back to homepage as UserA and check if settings saved
Given I log in as "UserA" with password "Kupuh1pa!"
And I should not see "Legal"
And I should not see "About"
And I should not see "Contact us"
And I should not see "External manual"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment