Commit ab43f12a authored by Doris Tam's avatar Doris Tam Committed by Son Nguyen
Browse files

Behat tests for checking contextual help in pages

Bug 1410009 and Bug #809297

Change-Id: I87bac22d566de75bc727108ebc49f5b89d84a26d
parent e6e87597
@javascript @core @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).
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Password1 | test01@example.com | Pete | Mc | mahara | internal | member |
When I log in as "userA" with password "Password1"
And I choose "Pages" in "Portfolio"
And I click on "Help icon"
And I should see "A page contains a selection of artefacts"
And I choose "Collections" in "Portfolio"
And I click on "Help icon"
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 choose "Shared by me" in "Portfolio"
And I click on "Help icon"
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."
And I choose "Shared with me" in "Portfolio"
And I click on "Help icon"
And I should see "On this page you can list the most recently modified or commented on pages that have been shared with"
And I choose "Export" in "Portfolio"
### 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 icon"
And I should see "You can export your portfolio to keep your files and content offline."
And I choose "Import" in "Portfolio"
And I click on "Help icon"
Then I should see "You can import your (or any valid Leap2a) portfolio from another Mahara site yourself."
......@@ -16,15 +16,12 @@ Scenario: Accessing help icons under Skin tabs (Bug 1411070)
Given I log in as "userA" with password "Password1"
And I follow "Portfolio"
And I choose "Skins" in "Portfolio"
And I follow "Help"
And I wait until the page is ready
And I click on "Help icon"
Then 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 press "Create skin"
And I follow "Help"
And I wait until the page is ready
And I click on "Help icon"
Then I should see "You can design your own skin" in the "div#helpstop" element
And I choose "Skins" in "Portfolio"
And I press "Import skin(s)"
And I follow "Help"
And I wait until the page is ready
And I click on "Help icon"
Then 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