Commit 9eb58409 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Behat Testsuite: Tidying up View feature files (Bug #1446395)"

parents 68132a44 2f96576c
@javascript @core @page
Feature: Mahara users can manage their pages
As a mahara user/admin
I can see/edit/delete one of my page
I can see/edit/delete a page in my groups
I can see/edit/delete a page in my institution or site
Background:
Given the following "institutions" exist:
| name | displayname | registerallowed | registerconfirm |
| instone | Institution One | ON | OFF |
| insttwo | Institution Two | ON | OFF |
And the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Password1 | test01@example.com | Pete | Mc | mahara | internal | admin |
| userB | Password1 | test02@example.com | Son | Nguyen | instone | internal | admin |
| userC | Password1 | test03@example.com | Jack | Smith | insttwo | internal | staff |
| userD | Password1 | test04@example.com | Eden | Wilson | mahara | internal | member |
And the following "groups" exist:
| name | owner | description | grouptype | open | invitefriends | editroles | submittableto | allowarchives | members | staff |
| group 01 | userA | This is group 01 | standard | ON | ON | all | ON | ON | userB, userC | userD |
And the following "pages" exist:
| title | description| ownertype | ownername |
| Page 01 | This is the page 01 | user | userD |
| Page 02 | This is the page 02 | user | userD |
| Site Page 01 | This is the page 01 of the site | institution | mahara |
| Institution Page 01 | This is the page 01 of the Institution One| institution | instone |
| Group Page 01 | This is the page 01 of the group 01 | group | group 01 |
Scenario: List and edit my portfolio pages
Given I log in as "userD" with password "Password1"
When I go to "view/index.php"
Then I should see "Page 01"
And I should see "Page 02"
And I click on "Edit content and layout" in "Page 01" row
And I should see "Edit content"
\ No newline at end of file
@javascript @core @page @share
Feature: Mahara users can share their pages
As a mahara user/admin
I can share my pages to others and see shared pages from others
Background:
Given the following "institutions" exist:
| name | displayname | registerallowed | registerconfirm |
| instone | Institution One | ON | OFF |
| insttwo | Institution Two | ON | OFF |
And the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Password1 | test01@example.com | Pete | Mc | mahara | internal | admin |
| userB | Password1 | test02@example.com | Son | Nguyen | instone | internal | admin |
| userC | Password1 | test03@example.com | Jack | Smith | insttwo | internal | staff |
| userD | Password1 | test04@example.com | Eden | Wilson | mahara | internal | member |
And the following "groups" exist:
| name | owner | description | grouptype | open | invitefriends | editroles | submittableto | allowarchives | members | staff |
| group 01 | userA | This is group 01 | standard | ON | ON | all | ON | ON | userB, userC | userD |
And the following "pages" exist:
| title | description| ownertype | ownername |
| D's Page 01 | UserD's page 01 | user | userD |
| D's Page 02 | UserD's page 02 | user | userD |
| A's Page 01 | UserA's page 01 | user | userA |
| B's Page 02 | UserB's page 02 | user | userB |
Scenario: Share pages
Given I log in as "userD" with password "Password1"
When I go to "view/share.php"
Then I should see "D's Page 01"
And I should see "D's Page 02"
And I click on "Edit access" in "D's Page 01" row
And I should see "Edit access"
\ No newline at end of file
@javascript @core @core_wallpost
@javascript @core @core_view
Feature: To go onto the Mahara website
In order to go to a deleted wall post
As an admin
......
@javascript @core @core_portfolio
@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
......@@ -22,7 +22,7 @@
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
# 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"
......
@javascript @core @core_portfolio
@javascript @core @core_view @core_portfolio
Feature: Adjusting the max items limit on the Shared with me page.
In order to be able to display a set amount of items on the shared with me page
As an admin
So I can view only a limited amount of pages at one time.
Scenario: Making sure that the max items per page drop down limits to correct amount of pages (Bug 1409369)
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
......@@ -62,7 +63,7 @@
| A's Page 49 | UserA's page 01 | user | userA |
| A's Page 50 | UserA's page 02 | user | userA |
| A's Page 51 | UserA's page 01 | user | userA |
And I follow "Portfolio"
When I follow "Portfolio"
And I follow "A's Page 01"
And I follow "Edit this page"
And I follow "Share page »"
......@@ -76,7 +77,7 @@
And I click on "Select all"
And I select "title" from "sort"
And I press "search_search"
And I should see "Maximum items per page:"
Then I should see "Maximum items per page:"
And I select "1" from "limit"
And I wait until the page is ready
And I should see "A's Page 01"
......
@javascript @core @core_portfolio
@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:
Given the following site settings are set:
| field | value |
| skins | 1 |
Given the following "users" exist:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Password1 | test01@example.com | Pete | Mc | mahara | internal | member |
......@@ -16,12 +17,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 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
When I click on "Help icon"
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 press "Create skin"
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 click on "Help icon"
Then I should see "You can import skins from other Mahara sites." in the "div#helpstop" element
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