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

Merge "Bug #1702613 - improve behat help text test"

parents 132bcf83 f603fd1e
@javascript @core @core_view @core_portfolio
Feature: Contextual helps for Mahara pages
@javascript @core @core_view @core_portfolio
Feature: Contextual helps for Mahara pages
In order to see a help message about a mahara page
As an student
So I can click the (i) icon next to the page title to get help about the page
Scenario: Showing contextual help for pages under menu "Portfolio" (Bug 809297).
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
| username | password | email | firstname | lastname | institution | authname | role |
| UserA | Kupuhipa1 | test01@example.com | Angela | User | mahara | internal | member |
# Skins need to be enabled
Given the following site settings are set:
| field | value |
| skins | 1 |
Given the following "pages" exist:
| title | description| ownertype | ownername |
| Page 01 | UserA's page 01 | user | UserA |
Scenario: Showing contextual help for pages under menu "Portfolio" (Bug 809297).
When I log in as "UserA" with password "Kupuhipa1"
# Test pages and collections help
And I choose "Pages and collections" in "Portfolio" from main menu
And I click on "Help"
And I should see "A page contains a selection of artefacts"
And I should see "A collection is a set of pages that are linked to one another and have the same access permissions."
And I follow "Close help"
# Pages
And I follow "Page 01"
And I follow "Edit this page"
And I click on "Help"
Then I should see "Designing your page layout enables you to personalise the way in which your resources and information can be displayed."
And I follow "Close help"
Given I click on "Settings" in the "div#main-column-container" "css_element"
And I click on "Help"
# Tags
Then I should see "You can add tags to artefacts, pages and collections you create."
# Collections
Given I choose "Pages and collections" in "Portfolio" from main menu
And I click on "Add"
And I click on "Collection"
# Edit collection settings
And I click on "Help" in the "h1.page-header" "css_element"
Then I should see "Here you may give your collection a title and description to give people an idea of what your collection is about."
And I follow "Help" in the "div#edit_tags_container" "css_element"
Then I should see "You can add tags to artefacts, pages and collections you create. Tags are descriptive labels that allow you to find your content later on more easily."
And I set the field "Collection name" to "Collection 01"
And I press "Next: Edit collection pages"
# Edit collection pages
And I follow "Help"
Then I should see "Here you can add pages to your collection and set the order in which they will be displayed in the collection navigation."
# Shared by me
And I choose "Shared by me" in "Portfolio" from main menu
And I click on "Help"
And I should see "When you have created portfolio pages and collections, you may wish to share them with others, e.g. to receive feedback on your work in form of comments."
Then I should see "When you have created portfolio pages and collections, you may wish to share them with others, e.g. to receive feedback on your work in form of comments."
# Shared with me
And I choose "Shared with me" in "Portfolio" from main menu
And I click on "Help"
And I should see "On this page you can list the most recently modified or commented on pages that have been shared with"
Then I should see "On this page you can list the most recently modified or commented on pages that have been shared with"
# Skins
And I choose "Skins" in "Portfolio" from main menu
And I click on "Help"
Then I should see "Skins help you customise the look of your portfolio pages to give them a personal touch."
And I follow "Close help"
# Create skin
And I follow "Create skin"
And I click on "Help"
Then I should see "You can design your own skin"
# Import skin
And I choose "Skins" in "Portfolio" from main menu
And I follow "Import skin(s)"
And I click on "Help"
And I should see "You can import skins from other Mahara sites."
# Export
# Note: The export page is not available if the export plugins is not installed and the zip command is not installed
And I choose "Export" in "Portfolio" from main menu
# Note: The export page is not available if the export plugins is not installed and the zip command is not installed
And I click on "Help"
And I should see "You can export your portfolio to keep your files and content offline."
# Import
And I choose "Import" in "Portfolio" from main menu
And I click on "Help"
Then I should see "You can import your (or any valid Leap2a) portfolio from another Mahara site yourself."
@javascript @core @core_view @core_portfolio
Feature: Adding the contextual help for pages in "Portfolio"/"Skins" menu
In order to see the contextual help for pages in "Portfolio"/"Skins" menu
As a student
So I can click the (i) icon next to the page header to see its description
Background:
Given the following site settings are set:
| field | value |
| skins | 1 |
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
Scenario: Accessing help icons under Skin tabs (Bug 1411070)
Given I log in as "UserA" with password "Kupuhipa1"
And I choose "Skins" in "Portfolio" from main menu
When I click on "Help"
And I should see "Skins help you customise the look of your portfolio pages to give them a personal touch." in the "div#helpstop" element
And I follow "Close help"
And I follow "Create skin"
And the following fields match these values:
| Skin access | private |
And I click on "Help"
Then I should see "You can design your own skin" in the "div#helpstop" element
And I choose "Skins" in "Portfolio" from main menu
And I follow "Import skin(s)"
And I click on "Help"
And I should see "You can import skins from other Mahara sites." in the "div#helpstop" element
Markdown is supported
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