Test for footer headings display

Bug #1690273 reported by Rebecca Blundell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Niranjan

Bug Description

The current behat test admin/create_and_delete_menu_item.feature has a partial test for showing and hiding elements of the footer:

    And I enable the switch "Terms and conditions"
    And I disable the following switches:
     | Privacy statement |
     | About |
     | Contact us |
    And I press "Save changes"
  # Checking the switches held the setting
    And the following fields match these values:
     | Terms and conditions | 1 |
     | Privacy statement | 0 |
     | About | 0 |
     | Contact us | 0 |

As part of the process of tidying up the behat tests, this functionality should be removed from this test and a new test created called footer_settings.feature.

The new test should have 2 scenarios, one to check the settings as above as admin, but also to check that the selected footer settings are displayed on the homepage to a user.

The second scenario should check that when the user clicks on the footer links, correct content is displayed, specifically that the headings are not repeated (Bug #1683551)

Tags: behat
Changed in mahara:
status: New → In Progress
Changed in mahara:
importance: Undecided → Medium
milestone: none → 17.10.0
Robert Lyon (robertl-9)
Changed in mahara:
milestone: 17.10.0 → 18.04.0
Changed in mahara:
assignee: nobody → Rebecca Blundell (rjb-dev)
Revision history for this message
Rebecca Blundell (rjb-dev) wrote :

The functionality I mentioned in the original bug report no longer exists in that test. So what we are looking for is a new test: settings/footer_settings.feature

This is written in super-abbreviated behat...

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:
Add one user

Scenario Outline: User can see correct headings in footer by default
User logs in and clicks on each of the examples
They should see each of the example texts as headings on the page. ( I don't think we should try to check that the headings aren't duplicated at this point.)
They should not see 'Terms and conditions'

Examples:
Privacy statement
About
Contact us

Scenario: Admin changes settings which are visible to user
Admin logs in and configures Menus for Footer so that Terms and Conditions is visible and the other headings are not visible
User logs and confirms T&C visible and at one of the others is not

Niranjan (niranjan528)
Changed in mahara:
assignee: Rebecca Blundell (rjb-dev) → Niranjan (niranjan528)
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/8479

Robert Lyon (robertl-9)
Changed in mahara:
milestone: 18.04.0 → 18.10.0
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/8479
Committed: https://git.mahara.org/mahara/mahara/commit/0827a5636bc28425ac0accccda6e5178b894e7c7
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 0827a5636bc28425ac0accccda6e5178b894e7c7
Author: Niranjan Bandi <email address hidden>
Date: Mon Jan 29 15:43:45 2018 +1300

Bug 1690273- Test for footer headings display

New test to check footer settings and headings correctly displayed

Change-Id: I64fa379a05cbe555a22f3ec6104edb349544a24f

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.