0 features failed of 21 features
0 scenarios failed of 27 scenarios
0 steps failed of 1049


Suite: core_features

Feature: Admins are allowed to see more types of messages than a regular person

In order to see what types are visible to me
As an admin/student
So I can filter messages

Feature: Configuration settings on networking page

In order to configure settings
As an admin
I need to be able to turn switches on and off

Feature: A user selects contact us from homepage and creates a message

In order to view the message
As user/admin
So admin can view the message in their inbox

Feature: Dashboard content check

As a Mahra account holder
I want to check that all the correct elements are on the dashboard

Feature: Expanding all the fieldsets

In order to see all the fields that are available on the page
As as admin
I need to expand all the fieldsets

Feature: Group categories settings

In order to enable group categories
As an admin
So I can benefit from the use of group categories

Feature: Group admin can push Group portfolio pages and collections to existing Group members

Feature: Show the block "Group portfolios" in the group homepage

In order to see group pages, shared and submitted pages/collections to a group
As a group member or group admin
So I can see these lists on the block "Group portfolios" in the group homepage

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

Feature: Hiding group members options

In order to hide group members from either general public or other members
As an admin
I adjust the 'Hide members' and 'Hide members from members' group config options

Feature: Limit the number of groups an institution may have

In order to limit groups by institution
As a group member
I can only make a group if the limit has not been reached

Feature: Institution statistics are displayed correctly

In order to view information about an institution
As an admin
So I can benefit from seeing the current user detail state of an institution

Feature: Checking the correct menu items are available for each person

In order to make sure the correct menu items are available
So people can access features in Mahara that they are allowed to interact with.

Feature: Adding more links to the jump list of the paginator on "Shared with me" page

In order to be able to see and follow hyperlinks to numbered page lists across paginator in regular intervals
As a student
So I can navigate more efficiently through a large amount of pages.

Feature: Random clicking test

In order to click on different links within Mahara
As an admin I need to verify all the buttons/links are working
So I can confirm the links/buttons are clickable for users

Feature: Changing "Logged-in users" to "Registered people"

In order to see "Registered people"
As an admin
So I can know that it can only be accessed by registered users

Feature: Missing language string when resizing images in plugin administration

In order to know what the button does I need to see lang string
As as admin
So I know what I'm turning on or off.

Feature: List of shared pages to a group

In order to see shared pages to a group
As a group member
So I can see shared pages to the group

Feature: Switching switch on and off when editing a forum

In order to automatically subscribe people via switchbox
As an admin
I need to be able to flick the switch on and off

Feature: Switching switches on the Edit group page

In order to edit a group
As an admin
I need to be able to turn the switches on and off and save the page

Feature: Front page search box

In order to edit display name settings for search box
As an admin I need to go to Account settings
So I can hide the display name of the user


Feature: Admins are allowed to see more types of messages than a regular person

In order to see what types are visible to me
As an admin/student
So I can filter messages

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • Given I log in as "admin" with password "Kupuh1pa!"
  • And I choose "People search" from administration menu
  • And I click on "Angela"
  • And I click on "Send message"
  • And I fill in the following:

    | Subject | Hi there |
    | Message | This is a test message |

  • And I click on "Send message"
  • And I log out
  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I choose inbox
  • And I click on "Hi there"
  • And I click on "Reply"
  • And I fill in the following:

    | Reply | Hi yourself |

  • And I click on "Reply"
  • And I log out
  • Given I log in as "admin" with password "Kupuh1pa!"
  • And I choose inbox
  • And the "Activity type:" select box should contain all "Administration messages | Comment | Contact us | Feedback on annotations | Group message | Institution message | Message from other people | New forum post | New page access | Objectionable content | Objectionable content in forum | Repeat virus upload | System message | Virus flag release | Watchlist"
  • And I log out
  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Groups" in "Engage" from main menu
  • And I click on "Create group"
  • And I fill in "Group name" with "Jurassic Park"
  • And I click on "Save group"
  • And I choose inbox
  • And the "Activity type:" select box should contain all "Comment | Feedback on annotations | Group message | Institution message | Message from other people | New forum post | New page access | Objectionable content in forum | System message | Watchlist"

Feature: Configuration settings on networking page

In order to configure settings
As an admin
I need to be able to turn switches on and off

  • Given I log in as "admin" with password "Kupuh1pa!"
  • And I choose "Networking" in "Configure site" from administration menu
  • And I set the following fields to these values:

    | Enable networking | 1 |
    | Auto-register all hosts | 1 |

  • And I click on "Save changes"
  • Then I should see "Networking has been enabled. Auto-register has been enabled."

Feature: A user selects contact us from homepage and creates a message

In order to view the message
As user/admin
So admin can view the message in their inbox

  • Given the following site settings are set:

    | field | value |
    | antispam | simple |

  • Given I click on "Contact us"
  • And I fill in "Name" with "Dean"
  • And I fill in "Email" with "deans@example.org"
  • And I fill in "Subject" with "What's wrong"
  • And I fill in "Message" with "Hello world"
  • And I wait "5" seconds
  • When I click on "Send message"
  • And I trigger cron
  • And I go to the homepage
  • And I log in as "admin" with password "Kupuh1pa!"
  • And I choose inbox
  • Then I should see "New contact us"

Feature: Dashboard content check

As a Mahra account holder
I want to check that all the correct elements are on the dashboard

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I click on "Develop your portfolio"
  • Then I should see "Portfolios" in the "H1 heading" "Common" property
  • And I am on homepage
  • And I click on "Control your privacy"
  • Then I should see "Share" in the "H1 heading" "Common" property
  • And I am on homepage
  • And I click on "Find people and join groups"
  • Then I should see "Groups" in the "H1 heading" "Common" property
  • And I choose "Preferences" in "Settings" from account menu
  • And I disable the switch "Dashboard information"
  • And I click on "Save"
  • And I am on homepage
  • And I should not see "Find people and join groups"
  • And I choose "Preferences" in "Settings" from account menu
  • And I enable the switch "Dashboard information"
  • And I click on "Save"
  • And I am on homepage
  • Then I should see "Find people and join groups"
  • And I should see "Portfolios shared with me"
  • And I should not see "Latest pages"
  • And I should see "My portfolios"
  • And I should see "Inbox"
  • And I should see "Pages I am watching"
  • When I click on "Edit dashboard"
  • Then "Remove block" should be in the "Portfolios shared with me" "Blocks" property
  • And "Edit block" should not be in the "My portfolios" "Blocks" property
  • And "Remove block" should be in the "My portfolios" "Blocks" property
  • And "Edit block" should be in the "Inbox" "Blocks" property
  • And "Edit block" should be in the "Pages I am watching" "Blocks" property
  • And "Remove block" should be in the "Pages I am watching" "Blocks" property
  • When I configure the block "Portfolios shared with me"
  • And I click on "Set a block title"
  • And I set the field "Block title" to "Latest change: Cats are cool!"
  • And I click on "Save"
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Text"
  • And I set the field "Block title" to "Favourite quote"
  • And I set the field "Block content" to "A four word quote. A.Anon"
  • And I click on "Save"
  • And I choose "Dashboard" from main menu
  • Then I should not see "Portfolios shared with me"
  • And I should see "Latest change: Cats are cool!"
  • And I should see "My portfolios"
  • And I should see "Inbox"
  • And I should see "Pages I am watching"
  • And I should see "Favourite quote"

Feature: Expanding all the fieldsets

In order to see all the fields that are available on the page
As as admin
I need to expand all the fieldsets

  • Given I log in as "admin" with password "Kupuh1pa!"
  • And I choose "Site options" in "Configure site" from administration menu
  • Then I expand all fieldsets
  • And I should see "Event log expiry"

Feature: Group categories settings

In order to enable group categories
As an admin
So I can benefit from the use of group categories

  • Given I log in as "admin" with password "Kupuh1pa!"
  • And I choose "Group categories" in "Groups" from administration menu
  • And I set the following fields to these values:

    | Enable group categories | 1 |

  • And I click on "Submit"
  • And I set the following fields to these values:

    | Enable group categories | 0 |

  • And I click on "Submit"

Feature: Group admin can push Group portfolio pages and collections to existing Group members

  • 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 | Kupuh1pa! | UserA@example.org | Angela | User | instone | internal | staff |
    | UserB | Kupuh1pa! | UserB@example.org | Bob | User | instone | internal | member |
    | UserC | Kupuh1pa! | UserC@example.org | Cecilia | User | instone | internal | member |

  • And the following "groups" exist:

    | name | owner | description | grouptype | open | invitefriends | editroles | submittableto | allowarchives | members | staff |
    | GroupA | UserA | GroupA owned by UserA | standard | ON | OFF | all | ON | OFF | UserB, UserA | UserA |
    | GroupC | UserC | GroupC owned by UserC | standard | ON | OFF | all | OFF | OFF | UserC | UserC |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page GroupA_01 | Group page 01 | group | GroupA |
    | Page GroupA_02 | Group page 02 | group | GroupA |
    | Page GroupA_03 | Group page 03 | group | GroupA |

  • And the following "collections" exist:

    | title | description | ownertype | ownername | pages |
    | Collection GroupA_01 | Collection 01 | group | GroupA | Page GroupA_02, Page GroupA_03 |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I should see "Angela"
  • When I choose "Groups" in "Engage" from main menu
  • And I click on "GroupA"
  • And I click on "Share" in the "Navigation" "Groups" property
  • And I click on "Edit access" in "Collection GroupA_01" row
  • And I click on "Advanced options"
  • Then I should see "Copy for existing group members"
  • And I enable the switch "Copy for existing group members"
  • And I click on "Save"
  • And I click on "Pages" in the "Share tabs" "Misc" property
  • And I click on "Edit access" in "Page GroupA_01" row
  • And I click on "Advanced options"
  • Then I should see "Copy for existing group members"
  • And I enable the switch "Copy for existing group members"
  • And I click on "Save"
  • And I log out
  • Given I log in as "UserB" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • Then I should see "Page GroupA_01"
  • And I should see "Collection GroupA_01"
  • And I log out
  • Given I log in as "UserC" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • Then I should not see "Page GroupA_01"
  • And I should not see "Collection GroupA_01"

Feature: Show the block "Group portfolios" in the group homepage

In order to see group pages, shared and submitted pages/collections to a group
As a group member or group admin
So I can see these lists on the block "Group portfolios" in the group homepage

  • Given the following "institutions" exist:

    | name | displayname | registerallowed | registerconfirm | progresscompletion |
    | instone | Institution One | ON | OFF | ON |
    | insttwo | Institution Two | ON | OFF | OFF |

  • And the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | instone | internal | staff |
    | UserB | Kupuh1pa! | UserB@example.org | Bob | User | instone | internal | member |
    | UserC | Kupuh1pa! | UserC@example.org | Cecilia | User | instone | internal | member |

  • And the following "groups" exist:

    | name | owner | description | grouptype | open | invitefriends | editroles | submittableto | allowarchives | members | staff | institution |
    | GroupA | UserA | GroupA owned by UserA | standard | ON | OFF | all | ON | OFF | UserB, UserC | | instone |
    | GroupB | UserA | GroupB owned by UserA | standard | ON | OFF | all | OFF | OFF | UserB, UserC | | |
    | GroupC | UserA | GroupC owned by UserA | course | ON | OFF | all | ON | OFF | UserC | UserB | |
    | GroupD | UserA | GroupD owned by UserA | standard | ON | OFF | all | ON | OFF | UserB, UserC | | |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |
    | Page UserA_02 | Page 02 | user | UserA |
    | Page UserA_03 | Page 03 | user | UserA |
    | Page UserA_04 | Page 04 | user | UserA |
    | Page UserA_05 | Page 05 | user | UserA |
    | Page UserA_06 | Page 06 | user | UserA |
    | Page UserA_07 | Page 07 | user | UserA |
    | Page UserA_08 | Page 08 | user | UserA |
    | Page UserA_09 | Page 09 | user | UserA |
    | Page UserA_10 | Page 10 | user | UserA |
    | Page UserA_11 | Page 11 | user | UserA |
    | Page UserA_12 | Page 12 | user | UserA |
    | Page UserB_01 | UserB's page 01 | user | UserB |
    | Page UserB_02 | UserB's page 02 | user | UserB |
    | Page UserB_03 | UserB's page 03 | user | UserB |
    | Page UserB_04 | UserB's page 04 | user | UserB |
    | Page UserB_05 | UserB's page 05 | user | UserB |
    | Page UserB_06 | UserB's page 06 | user | UserB |
    | Page UserB_07 | UserB's page 07 | user | UserB |
    | Page GroupA_01 | Group page 01 | group | GroupA |
    | Page GroupA_02 | Group page 02 | group | GroupA |
    | Page GroupA_03 | Group page 03 | group | GroupA |
    | Page GroupA_04 | Group page 04 | group | GroupA |
    | Page GroupA_05 | Group page 05 | group | GroupA |
    | Page GroupA_06 | Group page 06 | group | GroupA |
    | Page GroupA_07 | Group page 07 | group | GroupA |
    | Page GroupA_08 | Group page 08 | group | GroupA |
    | Page UserC_01 | Page 01 | user | UserC |
    | Page UserC_02 | Page 02 | user | UserC |
    | Page UserC_03 | Page 03 | user | UserC |
    | Page UserC_04 | Page 04 | user | UserC |
    | Page UserC_05 | Page 05 | user | UserC |
    | Page UserC_06 | Page 06 | user | UserC |
    | Page UserC_07 | Page 07 | user | UserC |
    | Page UserC_08 | Page 08 | user | UserC |
    | Page UserC_09 | Page 09 | user | UserC |
    | Page UserC_10 | Page 10 | user | UserC |
    | Page UserC_11 | Page 11 | user | UserC |
    | Page UserC_12 | Page 12 | user | UserC |
    | Page UserC_13 | Page 13 | user | UserC |
    | Page UserC_14 | Page 14 | user | UserC |
    | Page UserC_15 | Page 15 | user | UserC |
    | Page UserC_16 | Page 16 | user | UserC |
    | Page GroupA | Page 01 | group | GroupA |

  • And the following "collections" exist:

    | title | description | ownertype | ownername | pages |
    | Collection UserA_01 | Collection 01 | user | UserA | Page UserA_06, Page UserA_12 |
    | Collection UserA_02 | Collection 02 | user | UserA | Page UserA_07 |
    | Collection UserA_03 | Collection 03 | user | UserA | Page UserA_08 |
    | Collection UserA_04 | Collection 04 | user | UserA | Page UserA_09 |
    | Collection UserA_05 | Collection 05 | user | UserA | Page UserA_10 |
    | Collection UserA_06 | Collection 06 | user | UserA | Page UserA_11 |
    | Collection UserC_01 | Collection 01 | user | UserC | Page UserC_05 |
    | Collection UserC_02 | Collection 02 | user | UserC | Page UserC_06 |
    | Collection UserC_03 | Collection 03 | user | UserC | Page UserC_07 |
    | Collection UserC_04 | Collection 04 | user | UserC | Page UserC_08 |
    | Collection UserC_05 | Collection 05 | user | UserC | Page UserC_13 |
    | Collection UserC_06 | Collection 06 | user | UserC | Page UserC_14 |
    | Collection UserC_07 | Collection 07 | user | UserC | Page UserC_15 |
    | Collection UserC_08 | Collection 08 | user | UserC | Page UserC_16 |

  • And the following "collections" exist:

    | title | description | ownertype | ownername | pages | progresscompletion |
    | Coll GroupA | Group PC | group | GroupA | Page GroupA | ON |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I should see "Angela"
  • And I should see "GroupA"
  • And I choose "Shared by me" in "Share" from main menu
  • And I click on "Pages" in the "Share tabs" "Misc" property
  • And I click on "Edit access" in "Page UserA_01" row
  • And I set the select2 value "Page UserA_01, Page UserA_02, Page UserA_03, Page UserA_04, Page UserA_05" for "editaccess_views"
  • And I select "GroupA" from "accesslist[0][searchtype]"
  • And I click on "Save"
  • And I choose "Shared by me" in "Share" from main menu
  • And I click on "Collections" in the "Share tabs" "Misc" property
  • And I click on "Edit access" in "Collection UserA_01" row
  • And I should not see "Collection UserA_02" in the "Collections text-box" "Views" property
  • And I set the select2 value "Collection UserA_01, Collection UserA_02, Collection UserA_03, Collection UserA_04, Collection UserA_05, Collection UserA_06" for "editaccess_collections"
  • And I select "GroupA" from "accesslist[0][searchtype]"
  • And I click on "Save"
  • And I log out
  • Given I log in as "UserB" with password "Kupuh1pa!"
  • And I should see "Bob"
  • And I should see "GroupA"
  • And I choose "Shared by me" in "Share" from main menu
  • And I click on "Edit access" in "Page UserB_01" row
  • And I set the select2 value "Page UserB_01, Page UserB_02, Page UserB_03, Page UserB_04, Page UserB_05, Page UserB_06, Page UserB_07" for "editaccess_views"
  • And I select "GroupA" from "accesslist[0][searchtype]"
  • And I click on "Save"
  • And I log out
  • Given I log in as "UserC" with password "Kupuh1pa!"
  • And I should see "Cecilia"
  • And I should see "GroupA"
  • And I scroll to the base of id "groups"
  • And I click on "GroupA" in the "My groups box" "Groups" property
  • And I jump to next page of the list "groupviews_pagination"
  • And I should see "Page GroupA_05" in the "Group portfolios" "Groups" property
  • And I should see "Page GroupA_08" in the "Group portfolios" "Groups" property
  • And I should not see "Page GroupA_04" in the "Group portfolios" "Groups" property
  • And I should see "Page UserA_01" in the "Pages shared with this group" "Groups" property
  • And I should see "Page UserA_05" in the "Pages shared with this group" "Groups" property
  • And I should not see "Page UserB_01" in the "Pages shared with this group" "Groups" property
  • And I jump to page "2" of the list "sharedviews_pagination"
  • And I should see "Page UserB_05" in the "Pages shared with this group" "Groups" property
  • And I should not see "Page UserA_05" in the "Pages shared with this group" "Groups" property
  • And I jump to page "3" of the list "sharedviews_pagination"
  • And I should see "Page UserB_06" in the "Pages shared with this group" "Groups" property
  • And I should not see "Page UserB_01" in the "Pages shared with this group" "Groups" property
  • And I should see "Collection UserA_05" in the "Collections shared with this group" "Groups" property
  • And I should not see "Collection UserA_06" in the "Collections shared with this group" "Groups" property
  • And I jump to page "2" of the list "sharedcollections_pagination"
  • And I should see "Collection UserA_06" in the "Collections shared with this group" "Groups" property
  • And I should not see "Collection UserA_05" in the "Collections shared with this group" "Groups" property
  • And I log out
  • Given I log in as "UserB" with password "Kupuh1pa!"
  • And I should see "GroupA"
  • And I choose "Groups" in "Engage" from main menu
  • And I scroll to the center of id "findgroups"
  • And I click on "GroupA"
  • And I select "Page UserB_01" from "group_view_submission_form_1_options"
  • And I click on "Submit"
  • And I click on "Yes"
  • And I select "Page UserB_02" from "group_view_submission_form_1_options"
  • And I click on "Submit"
  • And I click on "Yes"
  • And I log out
  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I click on "GroupA (Administrator)"
  • And I wait "1" seconds
  • And I should see "Page UserB_01"
  • And I click on "Portfolios" in the "Navigation" "Groups" property
  • And I click on "Edit" in "Group homepage" card menu
  • And I scroll to the id "column-container"
  • And I configure the block "Group portfolios"
  • And I set the following fields to these values:

    | Sort group portfolios by | Most recently updated |
    | Sort shared portfolios by | Most recently updated |
    | Sort submitted portfolios by | Most recently submitted |

  • And I click on "Save"
  • And I display the page
  • And I click on "Portfolios" in the "Navigation" "Groups" property
  • And I click on "Edit" in "Page GroupA_06" card menu
  • And I click on "Settings" in the "Toolbar buttons" "Nav" property
  • And I set the field "Page description" to "<p>Group page 06 (updated)</p>"
  • And I scroll to the base of id "settings_submitform"
  • And I click on "Save"
  • And I display the page
  • And I click on "Edit"
  • And I click on "Return to group portfolios"
  • And I should see "Portfolios | GroupA"
  • And I choose "Groups" in "Engage" from main menu
  • And I scroll to the center of id "findgroups"
  • And I click on "GroupA"
  • And I should see "Page GroupA_06" in the "Group portfolios" "Groups" property
  • And I jump to next page of the list "groupviews_pagination"
  • And I should not see "Page GroupA_06" in the "Group portfolios" "Groups" property
  • And I choose "Portfolios" in "Create" from main menu
  • And I scroll to the base of id "showmorebtn"
  • And I click on "Show more"
  • And I click on "Edit" in "Page UserA_01" card menu
  • And I click on "Settings" in the "Toolbar buttons" "Nav" property
  • And I set the field "Page description" to "<p>Page 01 (updated)</p>"
  • And I scroll to the base of id "settings_submitform"
  • And I click on "Save"
  • And I display the page
  • And I choose "Groups" in "Engage" from main menu
  • And I scroll to the center of id "findgroups"
  • And I click on "GroupA"
  • And I should see "Page UserA_01" in the "Pages shared with this group" "Groups" property
  • And I jump to page "2" of the list "sharedviews_pagination"
  • And I should not see "Page UserA_01" in the "Pages shared with this group" "Groups" property
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Collection UserA_06" card menu
  • And I fill in "Collection description" with "Collection 06 (updated)"
  • And I scroll to the base of id "edit_submitform"
  • And I click on "Save"
  • And I choose "Groups" in "Engage" from main menu
  • And I scroll to the center of id "findgroups"
  • And I click on "GroupA"
  • And I should see "Collection UserA_06" in the "Collections shared with this group" "Groups" property
  • And I jump to page "2" of the list "sharedcollections_pagination"
  • And I should not see "Collection UserA_06" in the "Collections shared with this group" "Groups" property
  • And I select "Page UserA_01" from "group_view_submission_form_1_options"
  • And I click on "Submit"
  • And I click on "Yes"
  • And I select "Page UserA_02" from "group_view_submission_form_1_options"
  • And I click on "Submit"
  • And I click on "Yes"
  • And I select "Page UserA_03" from "group_view_submission_form_1_options"
  • And I click on "Submit"
  • And I click on "Yes"
  • And I select "Collection UserA_01" from "group_view_submission_form_1_options"
  • And I click on "Submit"
  • And I click on "Yes"
  • And I select "Collection UserA_02" from "group_view_submission_form_1_options"
  • And I click on "Submit"
  • And I click on "Yes"
  • And I select "Collection UserA_03" from "group_view_submission_form_1_options"
  • And I click on "Submit"
  • And I click on "Yes"
  • And I should see "Page UserA_03" in the "Submissions to this group" "Groups" property
  • And I should see "Collection UserA_03" in the "Submissions to this group" "Groups" property
  • And I should not see "Page UserB_01" in the "Submissions to this group" "Groups" property
  • And I jump to page "2" of the list "allsubmitted_pagination"
  • And I should see "Page UserA_01" in the "Submissions to this group" "Groups" property
  • And I should not see "Page UserA_02" in the "Submissions to this group" "Groups" property
  • And I log out
  • Given I log in as "UserC" with password "Kupuh1pa!"
  • And I should see "Cecilia"
  • And I should see "GroupD"
  • And I choose "Shared by me" in "Share" from main menu
  • And I click on "Pages" in the "Share tabs" "Misc" property
  • And I click on "Edit access" in "Page UserC_01" row
  • And I set the select2 value "Page UserC_01, Page UserC_03, Page UserC_04" for "editaccess_views"
  • And I select "GroupD" from "accesslist[0][searchtype]"
  • And I click on "Save"
  • And I choose "Shared by me" in "Share" from main menu
  • And I click on "Collections" in the "Share tabs" "Misc" property
  • And I click on "Edit access" in "Collection UserC_01" row
  • And I set the select2 value "Collection UserC_01, Collection UserC_03, Collection UserC_04" for "editaccess_collections"
  • And I select "GroupD" from "accesslist[0][searchtype]"
  • And I click on "Save"
  • And I choose "Groups" in "Engage" from main menu
  • And I click on "GroupD"
  • And I scroll to the base of id "group_view_submission_form_4_options_container"
  • And I select "Page UserC_03" from "group_view_submission_form_4_options"
  • And I click on "Submit"
  • And I click on "Yes"
  • And I scroll to the base of id "group_view_submission_form_4_options_container"
  • And I select "Collection UserC_03" from "group_view_submission_form_4_options"
  • And I click on "Submit"
  • And I click on "Yes"
  • And I choose "Groups" in "Engage" from main menu
  • And I scroll to the center of id "findgroups"
  • And I click on "GroupA"
  • And I select "Page UserC_04" from "group_view_submission_form_1_options"
  • And I click on "Submit"
  • And I click on "Yes"
  • And I select "Collection UserC_04" from "group_view_submission_form_1_options"
  • And I click on "Submit"
  • And I click on "Yes"
  • And I log out
  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I should see "Angela"
  • And I click on "GroupD"
  • And I should not see "Page UserC_03" in the "Pages shared with this group" "Groups" property
  • And I should see "Page UserC_03" in the "Submissions to this group" "Groups" property
  • And I should see "Collection UserC_01" in the "Collections shared with this group" "Groups" property
  • And I should not see "Collection UserC_03" in the "Collections shared with this group" "Groups" property
  • And I should see "Collection UserC_04" in the "Collections shared with this group" "Groups" property
  • And I should see "Collection UserC_03" in the "Submissions to this group" "Groups" property
  • And I log out
  • Given I log in as "UserB" with password "Kupuh1pa!"
  • And I should see "Bob"
  • And I should see "GroupD"
  • And I click on "GroupD"
  • And I should see "Page UserC_01" in the "Pages shared with this group" "Groups" property
  • And I should not see "Page UserC_02" in the "Pages shared with this group" "Groups" property
  • And I should see "Page UserC_03" in the "Pages shared with this group" "Groups" property
  • And I should see "Page UserC_04" in the "Pages shared with this group" "Groups" property
  • And I should see "Collection UserC_01" in the "Collections shared with this group" "Groups" property
  • And I should not see "Collection UserC_02" in the "Collections shared with this group" "Groups" property
  • And I should see "Collection UserC_03" in the "Collections shared with this group" "Groups" property
  • And I should see "Collection UserC_04" in the "Collections shared with this group" "Groups" property
  • And I log out
  • Given I log in as "UserC" with password "Kupuh1pa!"
  • And I should see "Cecilia"
  • And I should see "GroupC"
  • And I choose "Shared by me" in "Share" from main menu
  • And I click on "Pages" in the "Share tabs" "Misc" property
  • And I click on "Edit access" in "Page UserC_09" row
  • And I set the select2 value "Page UserC_09, Page UserC_11, Page UserC_12" for "editaccess_views"
  • And I select "GroupC" from "accesslist[0][searchtype]"
  • And I click on "Save"
  • And I choose "Shared by me" in "Share" from main menu
  • And I click on "Collections" in the "Share tabs" "Misc" property
  • And I click on "Edit access" in "Collection UserC_05" row
  • And I set the select2 value "Collection UserC_05, Collection UserC_07, Collection UserC_08" for "editaccess_collections"
  • And I select "GroupC" from "accesslist[0][searchtype]"
  • And I click on "Save"
  • And I choose "Groups" in "Engage" from main menu
  • And I click on "GroupC"
  • And I scroll to the base of id "group_view_submission_form_3_options_container"
  • And I select "Page UserC_10" from "group_view_submission_form_3_options"
  • And I click on "Submit"
  • And I click on "Yes"
  • And I scroll to the base of id "group_view_submission_form_3_options_container"
  • And I select "Page UserC_11" from "group_view_submission_form_3_options"
  • And I click on "Submit"
  • And I click on "Yes"
  • And I scroll to the base of id "group_view_submission_form_3_options_container"
  • And I select "Collection UserC_06" from "group_view_submission_form_3_options"
  • And I click on "Submit"
  • And I click on "Yes"
  • And I scroll to the base of id "group_view_submission_form_3_options_container"
  • And I select "Collection UserC_07" from "group_view_submission_form_3_options"
  • And I click on "Submit"
  • And I click on "Yes"
  • And I choose "Groups" in "Engage" from main menu
  • And I scroll to the center of id "findgroups"
  • And I click on "GroupA"
  • And I select "Page UserC_12" from "group_view_submission_form_1_options"
  • And I click on "Submit"
  • And I click on "Yes"
  • And I select "Collection UserC_08" from "group_view_submission_form_1_options"
  • And I click on "Submit"
  • And I click on "Yes"
  • And I log out
  • Given I log in as "UserB" with password "Kupuh1pa!"
  • And I should see "Bob"
  • And I should see "GroupC"
  • And I click on "GroupC"
  • And I should see "Page UserC_09" in the "Pages shared with this group" "Groups" property
  • And I should not see "Page UserC_10" in the "Pages shared with this group" "Groups" property
  • And I should not see "Page UserC_11" in the "Pages shared with this group" "Groups" property
  • And I should see "Page UserC_12" in the "Pages shared with this group" "Groups" property
  • And I should see "Page UserC_10" in the "Submissions to this group" "Groups" property
  • And I should see "Page UserC_11" in the "Submissions to this group" "Groups" property
  • And I should see "Collection UserC_05" in the "Collections shared with this group" "Groups" property
  • And I should not see "Collection UserC_06" in the "Collections shared with this group" "Groups" property
  • And I should not see "Collection UserC_07" in the "Collections shared with this group" "Groups" property
  • And I should see "Collection UserC_08" in the "Collections shared with this group" "Groups" property
  • And I should see "Collection UserC_06" in the "Submissions to this group" "Groups" property
  • And I should see "Collection UserC_07" in the "Submissions to this group" "Groups" property
  • Given the following "institutions" exist:

    | name | displayname | registerallowed | registerconfirm | progresscompletion |
    | instone | Institution One | ON | OFF | ON |
    | insttwo | Institution Two | ON | OFF | OFF |

  • And the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | instone | internal | staff |
    | UserB | Kupuh1pa! | UserB@example.org | Bob | User | instone | internal | member |
    | UserC | Kupuh1pa! | UserC@example.org | Cecilia | User | instone | internal | member |

  • And the following "groups" exist:

    | name | owner | description | grouptype | open | invitefriends | editroles | submittableto | allowarchives | members | staff | institution |
    | GroupA | UserA | GroupA owned by UserA | standard | ON | OFF | all | ON | OFF | UserB, UserC | | instone |
    | GroupB | UserA | GroupB owned by UserA | standard | ON | OFF | all | OFF | OFF | UserB, UserC | | |
    | GroupC | UserA | GroupC owned by UserA | course | ON | OFF | all | ON | OFF | UserC | UserB | |
    | GroupD | UserA | GroupD owned by UserA | standard | ON | OFF | all | ON | OFF | UserB, UserC | | |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |
    | Page UserA_02 | Page 02 | user | UserA |
    | Page UserA_03 | Page 03 | user | UserA |
    | Page UserA_04 | Page 04 | user | UserA |
    | Page UserA_05 | Page 05 | user | UserA |
    | Page UserA_06 | Page 06 | user | UserA |
    | Page UserA_07 | Page 07 | user | UserA |
    | Page UserA_08 | Page 08 | user | UserA |
    | Page UserA_09 | Page 09 | user | UserA |
    | Page UserA_10 | Page 10 | user | UserA |
    | Page UserA_11 | Page 11 | user | UserA |
    | Page UserA_12 | Page 12 | user | UserA |
    | Page UserB_01 | UserB's page 01 | user | UserB |
    | Page UserB_02 | UserB's page 02 | user | UserB |
    | Page UserB_03 | UserB's page 03 | user | UserB |
    | Page UserB_04 | UserB's page 04 | user | UserB |
    | Page UserB_05 | UserB's page 05 | user | UserB |
    | Page UserB_06 | UserB's page 06 | user | UserB |
    | Page UserB_07 | UserB's page 07 | user | UserB |
    | Page GroupA_01 | Group page 01 | group | GroupA |
    | Page GroupA_02 | Group page 02 | group | GroupA |
    | Page GroupA_03 | Group page 03 | group | GroupA |
    | Page GroupA_04 | Group page 04 | group | GroupA |
    | Page GroupA_05 | Group page 05 | group | GroupA |
    | Page GroupA_06 | Group page 06 | group | GroupA |
    | Page GroupA_07 | Group page 07 | group | GroupA |
    | Page GroupA_08 | Group page 08 | group | GroupA |
    | Page UserC_01 | Page 01 | user | UserC |
    | Page UserC_02 | Page 02 | user | UserC |
    | Page UserC_03 | Page 03 | user | UserC |
    | Page UserC_04 | Page 04 | user | UserC |
    | Page UserC_05 | Page 05 | user | UserC |
    | Page UserC_06 | Page 06 | user | UserC |
    | Page UserC_07 | Page 07 | user | UserC |
    | Page UserC_08 | Page 08 | user | UserC |
    | Page UserC_09 | Page 09 | user | UserC |
    | Page UserC_10 | Page 10 | user | UserC |
    | Page UserC_11 | Page 11 | user | UserC |
    | Page UserC_12 | Page 12 | user | UserC |
    | Page UserC_13 | Page 13 | user | UserC |
    | Page UserC_14 | Page 14 | user | UserC |
    | Page UserC_15 | Page 15 | user | UserC |
    | Page UserC_16 | Page 16 | user | UserC |
    | Page GroupA | Page 01 | group | GroupA |

  • And the following "collections" exist:

    | title | description | ownertype | ownername | pages |
    | Collection UserA_01 | Collection 01 | user | UserA | Page UserA_06, Page UserA_12 |
    | Collection UserA_02 | Collection 02 | user | UserA | Page UserA_07 |
    | Collection UserA_03 | Collection 03 | user | UserA | Page UserA_08 |
    | Collection UserA_04 | Collection 04 | user | UserA | Page UserA_09 |
    | Collection UserA_05 | Collection 05 | user | UserA | Page UserA_10 |
    | Collection UserA_06 | Collection 06 | user | UserA | Page UserA_11 |
    | Collection UserC_01 | Collection 01 | user | UserC | Page UserC_05 |
    | Collection UserC_02 | Collection 02 | user | UserC | Page UserC_06 |
    | Collection UserC_03 | Collection 03 | user | UserC | Page UserC_07 |
    | Collection UserC_04 | Collection 04 | user | UserC | Page UserC_08 |
    | Collection UserC_05 | Collection 05 | user | UserC | Page UserC_13 |
    | Collection UserC_06 | Collection 06 | user | UserC | Page UserC_14 |
    | Collection UserC_07 | Collection 07 | user | UserC | Page UserC_15 |
    | Collection UserC_08 | Collection 08 | user | UserC | Page UserC_16 |

  • And the following "collections" exist:

    | title | description | ownertype | ownername | pages | progresscompletion |
    | Coll GroupA | Group PC | group | GroupA | Page GroupA | ON |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Groups" in "Engage" from main menu
  • And I click on "GroupA"
  • And I click on "Coll GroupA"
  • And I should see "Portfolio completion"

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

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | test01@example.com | Angela | User | mahara | internal | member |

  • And the following site settings are set:

    | field | value |
    | skins | 1 |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page 01 | UserA's page 01 | user | UserA |

  • And the following "groups" exist:

    | name | owner | description | grouptype | open | invitefriends | editroles | submittableto | allowarchives | members | staff |
    | GroupA | admin | GroupA owned by admin | standard | ON | ON | all | ON | ON | UserA | |

  • When I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" 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 click on "Close help"
  • And I click on "Page 01"
  • And I click on "Edit"
  • And I click on "Help"
  • Then I should see "You can move blocks around the page either by dragging them or using your keyboard controls."
  • And I click on "Close help"
  • Given I click on "Settings" in the "Toolbar buttons" "Nav" property
  • And I click on "Help"
  • Then I should see "You can add tags to artefacts, pages and collections you create."
  • Given I choose "Portfolios" in "Create" from main menu
  • And I click on "Create" in the "Create" "Views" property
  • And I click on "Collection"
  • And I click on "Help" in the "H1 heading" "Common" property
  • 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 click on "Help for \"Tags\"" in the "Tags section" "Tags" property
  • 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 click on "Next: Edit collection pages"
  • And I click on "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."
  • And I choose "Shared by me" in "Share" from main menu
  • And I click on "Help"
  • Then I should see "When you have created portfolios, you may wish to share them with others, e.g. to receive feedback on your work in form of comments."
  • And I choose "Shared with me" in "Share" from main menu
  • And I click on "Help"
  • Then 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 "Skins" in "Create" 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 click on "Close help"
  • And I click on "Create skin"
  • And I click on "Help"
  • Then I should see "You can design your own skin"
  • And I choose "Skins" in "Create" from main menu
  • And I click on "More options"
  • And I click on "Import" in the "Top right button group" "Nav" property
  • And I click on "Help"
  • And I should see "You can import skins from other Mahara sites."
  • And I choose "Export" in "Manage" from main menu
  • And I click on "Help"
  • And I should see "You can export your portfolio to keep your files and content offline."
  • And I choose "Import" in "Manage" 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."
  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | test01@example.com | Angela | User | mahara | internal | member |

  • And the following site settings are set:

    | field | value |
    | skins | 1 |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page 01 | UserA's page 01 | user | UserA |

  • And the following "groups" exist:

    | name | owner | description | grouptype | open | invitefriends | editroles | submittableto | allowarchives | members | staff |
    | GroupA | admin | GroupA owned by admin | standard | ON | ON | all | ON | ON | UserA | |

  • When I log in as "admin" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Help" in the "Footer" "Footer" property
  • And I wait "1" seconds
  • And I switch to the new window
  • And I scroll to the center of id "overview-page"
  • And I should see "4.1.1. Overview page" in "h2" on the screen
  • And I switch to the main window
  • When I am on homepage
  • And I choose "Portfolios" in "Institutions" from administration menu
  • And I click on "Help" in the "Footer" "Footer" property
  • And I switch to the new window
  • And I scroll to the center of id "institution-pages"
  • And I should see "11.6.13. Institution pages and collections" in "h2" on the screen
  • And I switch to the main window
  • When I am on homepage
  • And I choose "Portfolios" in "Configure site" from administration menu
  • And I click on "Help" in the "Footer" "Footer" property
  • And I switch to the new window
  • And I scroll to the center of id "site-pages-and-collections"
  • And I should see "11.3.7. Site pages and collections" in "h2" on the screen
  • And I switch to the main window
  • When I am on homepage
  • And I click on "GroupA"
  • And I click on "Portfolios" in the "Navigation" "Groups" property
  • And I click on "Help" in the "Footer" "Footer" property
  • And I switch to the new window
  • And I scroll to the center of id "pages-and-collections"
  • And I should see "6.4.4. Pages and collections" in "h2" on the screen
  • And I switch to the main window

Feature: Hiding group members options

In order to hide group members from either general public or other members
As an admin
I adjust the 'Hide members' and 'Hide members from members' group config options

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |
    | groupadmin | Kupuh1pa! | randomteacher@example.org | Super | Teacher | mahara | internal | admin |
    | grouptutor | Kupuh1pa! | randomtutor@example.org | Diligent | Tutor | mahara | internal | member |
    | randomuser | Kupuh1pa! | randomuser2@example.org | Random | Person | mahara | internal | member |

  • Given the following "groups" exist:

    | name | owner | description | grouptype | open | invitefriends | editroles | submittableto | allowarchives | members | staff |
    | GroupA | groupadmin | GroupA owned by groupadmin | course | ON | ON | all | ON | ON | UserA | grouptutor |

  • Given I log in as "groupadmin" with password "Kupuh1pa!"
  • And I choose "Groups" in "Engage" from main menu
  • And I select "All groups" from "filter"
  • And I click on "Search"
  • And I wait "1" seconds
  • And I click on "Edit \"GroupA\""
  • And I select "Hide tutors" from "editgroup_hidemembers"
  • And I click on "Save group"
  • Then I should see "Group saved successfully"
  • And I log out
  • When I log in as "randomuser" with password "Kupuh1pa!"
  • And I choose "Groups" in "Engage" from main menu
  • And I select "All groups" from "filter"
  • And I click on "Search"
  • And I wait "1" seconds
  • And I click on "GroupA"
  • Then I should not see "Diligent Tutor"
  • And I should see "Angela User"
  • And I log out

Feature: Limit the number of groups an institution may have

In order to limit groups by institution
As a group member
I can only make a group if the limit has not been reached

  • Given the following "institutions" exist:

    | name | displayname | registerallowed | registerconfirm |
    | instone | Institution One | ON | OFF |

  • And the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | instone | internal | member |

  • And the following "groups" exist:

    | name | owner | description | grouptype | open | invitefriends | editroles | submittableto | allowarchives | institution |
    | GroupA | UserA | GroupA owned by UserA | standard | ON | OFF | all | ON | OFF | instone |
    | GroupB | UserA | GroupB owned by UserA | standard | ON | OFF | all | OFF | OFF | instone |
    | GroupC | UserA | GroupC owned by UserA | course | ON | OFF | all | ON | OFF | instone |
    | GroupD | UserA | GroupD owned by UserA | standard | ON | OFF | all | ON | OFF | instone |

  • And the following site settings are set:

    | field | value |
    | creategroups | all |

  • Given I log in as "admin" with password "Kupuh1pa!"
  • And I choose "Settings" in "Institutions" from administration menu
  • And I click on "Edit" in "Institution One" row
  • And I set the following fields to these values:

    | Maximum number of groups allowed | 5 |

  • And I click on "Submit"
  • And I choose "Add groups by CSV" in "Groups" from administration menu
  • And I set the following fields to these values:

    | Institution | Institution One |

  • And I attach the file "groups.csv" to "CSV file"
  • When I click on "Add groups by CSV" in the "CSV submit" "Misc" property
  • Then I should see "Adding this many groups exceeds the group limit for your institution"
  • And I log out
  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Groups" in "Engage" from main menu
  • And I click on "Create group"
  • And I set the following fields to these values:

    | Group name | GroupE |
    | Group description | GroupE owned by UserA |

  • And I click on "Save group"
  • And I should see "Group saved successfully"
  • And I click on "Edit \"GroupE\""
  • And I set the following fields to these values:

    | Group description | This is GroupE owned by UserA |

  • And I click on "Save group"
  • And I choose "Groups" in "Engage" from main menu
  • And I click on "Create group"
  • Then I should see "Groups cannot be added to this institution because the maximum number of groups allowed in the institution has been reached"

Feature: Institution statistics are displayed correctly

In order to view information about an institution
As an admin
So I can benefit from seeing the current user detail state of an institution

  • Given the following "institutions" exist:

    | name | displayname | registerallowed | registerconfirm | defaultquota |
    | instone | Institution One | ON | ON | 20MB |
    | insttwo | Institution Two | ON | ON | 30MB |
    | instthree | Institution Three | ON | ON | 50MB |

  • And the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | instone | internal | member |
    | UserB | Kupuh1pa! | UserB@example.org | Bob | User | insttwo | internal | member |
    | UserC | Kupuh1pa! | UserC@example.org | Cecilia | User | instthree | internal | member |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Files" in "Create" from main menu
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I log out
  • Given I log in as "UserB" with password "Kupuh1pa!"
  • And I choose "Files" in "Create" from main menu
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I log out
  • Given I log in as "UserC" with password "Kupuh1pa!"
  • And I choose "Files" in "Create" from main menu
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I log out
  • Given I log in as "admin" with password "Kupuh1pa!"
  • When I choose "Reports" from administration menu
  • And I click on "Configure report"
  • And I set the select2 value "All institutions" for "reportconfigform_institution"
  • And I wait "1" seconds
  • And I set the select2 value "Account details" for "reportconfigform_typesubtype"
  • And I fill in "To:" with "tomorrow" date in the format "Y/m/d"
  • And I expand the section "Columns"
  • And I check "Quota used"
  • And I click on "Submit"
  • Then I should see "Account details | All institutions"
  • And I should see "42%" in the "Angela" row
  • And I should see "57%" in the "Bob" row
  • And I should see "68%" in the "Cecilia" row
  • When I click on "Quota used"
  • Then I should see "68%" in the "Account details row 1" "Report" property

Feature: Checking the correct menu items are available for each person

In order to make sure the correct menu items are available
So people can access features in Mahara that they are allowed to interact with.

  • Given the following "institutions" exist:

    | name | displayname | registerallowed | registerconfirm |
    | instone | Institution One | ON | OFF |

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |
    | UserB | Kupuh1pa! | UserB@example.org | Bob | Staff | mahara | internal | staff |
    | UserC | Kupuh1pa! | UserC@example.org | Cecilia | Staff | instone | internal | staff |
    | AdminA | Kupuh1pa! | AdminA@example.org | Angela | Admin | instone | internal | admin |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • When I click on "Show main menu"
  • And I wait "1" seconds
  • And I click on "Dashboard"
  • Then I should not see "Administration" in the "Administration menu" "Nav" property
  • And I should not see "Site information" in the "Administration menu" "Nav" property
  • And I click on "Show main menu"
  • And I should see "Create" in the "Main menu" "Nav" property
  • And I should see "Engage" in the "Main menu" "Nav" property
  • And I should see "Manage" in the "Main menu" "Nav" property
  • When I click on "Create"
  • Then I should see "Portfolios" in the "Create sub-menu" "Nav" property
  • And I should see "Files" in the "Create sub-menu" "Nav" property
  • And I should see "Journals" in the "Create sub-menu" "Nav" property
  • And I should see "Résumé" in the "Create sub-menu" "Nav" property
  • And I should see "Plans" in the "Create sub-menu" "Nav" property
  • And I should see "Notes" in the "Create sub-menu" "Nav" property
  • When I click on "Share"
  • And I should see "Shared by me" in the "Share sub-menu" "Nav" property
  • And I should see "Shared with me" in the "Share sub-menu" "Nav" property
  • When I click on "Engage"
  • Then I should see "Groups" in the "Engage sub-menu" "Nav" property
  • And I should see "People" in the "Engage sub-menu" "Nav" property
  • And I should see "Discussion topics" in the "Engage sub-menu" "Nav" property
  • When I click on "Manage"
  • And I should see "Export" in the "Manage sub-menu" "Nav" property
  • And I should see "Import" in the "Manage sub-menu" "Nav" property
  • Given the following "institutions" exist:

    | name | displayname | registerallowed | registerconfirm |
    | instone | Institution One | ON | OFF |

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |
    | UserB | Kupuh1pa! | UserB@example.org | Bob | Staff | mahara | internal | staff |
    | UserC | Kupuh1pa! | UserC@example.org | Cecilia | Staff | instone | internal | staff |
    | AdminA | Kupuh1pa! | AdminA@example.org | Angela | Admin | instone | internal | admin |

  • Given I log in as "UserB" with password "Kupuh1pa!"
  • Then I should not see "Administration" in the "Main menu" "Nav" property
  • And I click on "Show administration menu"
  • And I wait "1" seconds
  • And I click on "People search"
  • And I click on "Show administration menu"