Commit 9c26c145 authored by Gregor Anzelj's avatar Gregor Anzelj Committed by Robert Lyon
Browse files

Bug 845263: Password policy

Improve the password policy enforcement and configuration in Mahara.
Have a pre-defined password policy of a minimum of 8 characters with
type "alphanumeric mixed case + symbols".

Also allow site administrators to set the desired password policy in
Site Options > Security Settings. In all locations where password
is set, the password input should also include a password strength
indicator.

Change-Id: I020af58a6cf1635fe295f5434783ce5b6f6daacb
parent f3d614cb
......@@ -7,7 +7,7 @@ So I can access them from my dashboard
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
| UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |
And the following "pages" exist:
| title | description | ownertype | ownername |
......@@ -19,7 +19,7 @@ And the following "permissions" exist:
| Page UserA_01 | public |
Scenario: Viewing a list of pages I watch from the dashboard (Bug 1444784)
Given I log in as "admin" with password "Kupuhipa1"
Given I log in as "admin" with password "Kupuh1pa!"
When I am on homepage
Then I should see "Watched pages"
And I should see "There are no pages on your watchlist."
......
......@@ -11,13 +11,13 @@ Background:
| one | Institution 1 | webservice |
And the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| serviceadmin | Kupuhipa1 | svad@example.com | Service | Admin | one | webservice | admin |
| serviceadmin | Kupuh1pa! | svad@example.com | Service | Admin | one | webservice | admin |
And the following "groups" exist:
| name | owner | description | grouptype | open | invitefriends | editroles | submittableto | allowarchives | members | staff | institution |
| Group A | admin | This is my group A | standard | ON | OFF | all | OFF | OFF | admin | | one |
Scenario: Turning master switch on
Given I log in as "admin" with password "Kupuhipa1"
Given I log in as "admin" with password "Kupuh1pa!"
And I choose "Configuration" in "Web services" from administration menu
# Turning the master switch on
And I enable the switch "Accept incoming web service requests:"
......
......@@ -8,10 +8,10 @@ So I can benefit from the cross over of Moodle/Mahara
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
| UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |
Scenario: Turning master switch on
Given I log in as "admin" with password "Kupuhipa1"
Given I log in as "admin" with password "Kupuh1pa!"
And I choose "Configuration" in "Web services" from administration menu
# Turning the master switch on
And I enable the switch "Accept incoming web service requests:"
......@@ -19,7 +19,7 @@ Scenario: Turning master switch on
And I should not see "The web service authentication plugin is disabled"
And I log out
# Logging in as student to try turn switch on
When I log in as "UserA" with password "Kupuhipa1"
When I log in as "UserA" with password "Kupuh1pa!"
Then I should see "Angela User"
# Checking the student can't access the link
And "Administration" "link" should not be visible
......
......@@ -5,7 +5,7 @@ As an admin
So I can benefit from the mahara/moodle cross over.
Scenario: Testing web service admin page on/off switches, and checking test client page is accessible (Bug 1431540)
Given I log in as "admin" with password "Kupuhipa1"
Given I log in as "admin" with password "Kupuh1pa!"
And I choose "Configuration" in "Web services" from administration menu
# Toggle Web service requester master switch
And I disable the switch "Allow outgoing web service requests:"
......
......@@ -4,7 +4,7 @@ Feature: Writing and deleting comments
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | admin |
| UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | admin |
Given the following "pages" exist:
| title | description | ownertype | ownername |
| Page UserA_01 | Page 01 | user | UserA |
......@@ -23,7 +23,7 @@ Scenario: Adding and deleting public comments
And I fill in "Comment" with "Public comment by anonymous user"
And I enable the switch "Make comment public"
And I press "Comment"
And I log in as "UserA" with password "Kupuhipa1"
And I log in as "UserA" with password "Kupuh1pa!"
And I go to portfolio page "Page UserA_01"
# The label for message text area - logged in users
And I fill in "Comment by page owner" in editor "Comment"
......@@ -59,7 +59,7 @@ Scenario: Add comments block to page
And I fill in "Comment" with "Public comment by anonymous user"
And I enable the switch "Make comment public"
And I press "Comment"
Given I log in as "UserA" with password "Kupuhipa1"
Given I log in as "UserA" with password "Kupuh1pa!"
And I choose "Pages and collections" in "Portfolio" from main menu
And I click on "Page UserA_01" panel menu
And I click on "Edit" in "Page UserA_01" panel menu
......@@ -75,7 +75,7 @@ Scenario: Add comments block to page
And I should see "Public comment by anonymous user"
Scenario: Comments update the page's mtime
Given I log in as "admin" with password "Kupuhipa1"
Given I log in as "admin" with password "Kupuh1pa!"
# Set New Views to only show me the most recently updated page
And I follow "Edit dashboard"
......
......@@ -6,7 +6,7 @@ Feature: Delete groups
Scenario: Creating groups and deleting them (Selenium)
# Log in as "Admin" user
Given I log in as "admin" with password "Kupuhipa1"
Given I log in as "admin" with password "Kupuh1pa!"
# Create a Friend invitation only group
And I choose "Groups" from main menu
And I follow "Create group"
......
......@@ -5,8 +5,8 @@ Feature: Show collection shared with a group on the group homepage (Bug 1655456)
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
| UserB | Kupuhipa1 | UserB@example.org | Bob | User | mahara | internal | member |
| UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |
| UserB | Kupuh1pa! | UserB@example.org | Bob | User | mahara | internal | member |
And the following "groups" exist:
| name | owner | description | grouptype | open | invitefriends | editroles | submittableto | allowarchives | members | staff |
......@@ -26,7 +26,7 @@ Background:
Scenario: When a collection is shared and a page is deleted from the collection the second user should still see the collection at about tab
# Log in as a normal user
Given I log in as "UserA" with password "Kupuhipa1"
Given I log in as "UserA" with password "Kupuh1pa!"
# Verifying log in was successful
And I should see "Angela"
And I should see "GroupA"
......@@ -45,7 +45,7 @@ Scenario: When a collection is shared and a page is deleted from the collection
And I log out
# Log in as UserB
And I log in as "UserB" with password "Kupuhipa1"
And I log in as "UserB" with password "Kupuh1pa!"
And I choose "Groups" from main menu
And I follow "GroupA"
And I follow "Collection UserA_01"
......
......@@ -7,7 +7,7 @@ Feature: Displaying multiple groups on a page
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
| UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | 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 | ON | admin | |
......@@ -23,7 +23,7 @@ Background:
Scenario: Create groups and limit display on profile page (Bug 1426983)
# Log in as a normal user
Given I log in as "UserA" with password "Kupuhipa1"
Given I log in as "UserA" with password "Kupuh1pa!"
# Creating several groups to test
And I choose "Groups" from main menu
And I follow "Create group"
......
......@@ -8,14 +8,14 @@ Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
| UserB | Kupuhipa1 | UserB@example.org | Bob | User | mahara | internal | member |
| UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |
| UserB | Kupuh1pa! | UserB@example.org | Bob | User | mahara | internal | member |
And the following "groups" exist:
| name | owner | description | grouptype | open | invitefriends | editroles | submittableto | allowarchives | members | staff |
| GroupA | UserB | GroupA owned by UserB | course | ON | ON | all | ON | ON | admin, UserA | admin |
Scenario: Uploading groups via CSV and editing as an admin (Bug 1420590)
Given I log in as "admin" with password "Kupuhipa1"
Given I log in as "admin" with password "Kupuh1pa!"
And I choose "Add groups by CSV" in "Groups" from administration menu
# Attaching the groups via CSV
And I attach the file "groups.csv" to "CSV file"
......@@ -29,7 +29,7 @@ Scenario: Uploading groups via CSV and editing as an admin (Bug 1420590)
And I press "Update group members by CSV"
And I log out
# Logging back in as a user
And I log in as "UserA" with password "Kupuhipa1"
And I log in as "UserA" with password "Kupuh1pa!"
And I choose "Groups" from main menu
And I follow "Group Two"
# Editing the group
......@@ -41,7 +41,7 @@ Scenario: Uploading groups via CSV and editing as an admin (Bug 1420590)
And I should see "Group saved successfully"
Scenario: Editing groups as a user not via CSV
Given I log in as "UserB" with password "Kupuhipa1"
Given I log in as "UserB" with password "Kupuh1pa!"
And I choose "Groups" from main menu
And I follow "GroupA"
# Editing the group
......@@ -54,7 +54,7 @@ Scenario: Uploading groups via CSV and editing as an admin (Bug 1420590)
And I should see "Group saved successfully"
And I log out
# Logging in as Admin
Given I log in as "admin" with password "Kupuhipa1"
Given I log in as "admin" with password "Kupuh1pa!"
And I choose "Groups" from main menu
And I follow "Group awesome sauce"
# Making sure I can't edit a group I am not owner of
......
......@@ -6,18 +6,18 @@ Feature: Edit group membership
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
| UserB | Kupuhipa1 | UserB@example.org | Bob | User | mahara | internal | member |
| UserC | Kupuhipa1 | UserC@example.org |Cecilia | User | mahara | internal | member |
| UserD | Kupuhipa1 | UserD@example.org | Dmitri | User | mahara | internal | member |
| UserE | Kupuhipa1 | UserE@example.org | Evonne | User | mahara | internal | member |
| UserF | Kupuhipa1 | UserF@example.org | Fergus | User | mahara | internal | member |
| UserG | Kupuhipa1 | UserG@example.org | Gabi | User | mahara | internal | member |
| UserH | Kupuhipa1 | UserH@example.org | Hugo |User | mahara | internal | member |
| UserI | Kupuhipa1 | UserI@example.org | Iria | User | mahara | internal | member |
| UserJ | Kupuhipa1 | UserJ@example.org | Julius |User | mahara | internal | member |
| UserK | Kupuhipa1 | UserK@example.org | Kristina | User | mahara | internal | member |
| UserL | Kupuhipa1 | UserL@example.org | Liam | User | mahara | internal | member |
| UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |
| UserB | Kupuh1pa! | UserB@example.org | Bob | User | mahara | internal | member |
| UserC | Kupuh1pa! | UserC@example.org |Cecilia | User | mahara | internal | member |
| UserD | Kupuh1pa! | UserD@example.org | Dmitri | User | mahara | internal | member |
| UserE | Kupuh1pa! | UserE@example.org | Evonne | User | mahara | internal | member |
| UserF | Kupuh1pa! | UserF@example.org | Fergus | User | mahara | internal | member |
| UserG | Kupuh1pa! | UserG@example.org | Gabi | User | mahara | internal | member |
| UserH | Kupuh1pa! | UserH@example.org | Hugo |User | mahara | internal | member |
| UserI | Kupuh1pa! | UserI@example.org | Iria | User | mahara | internal | member |
| UserJ | Kupuh1pa! | UserJ@example.org | Julius |User | mahara | internal | member |
| UserK | Kupuh1pa! | UserK@example.org | Kristina | User | mahara | internal | member |
| UserL | Kupuh1pa! | UserL@example.org | Liam | User | mahara | internal | member |
And the following "groups" exist:
| name | owner | description | grouptype | open | invitefriends | editroles | submittableto | allowarchives | members | staff |
......@@ -27,7 +27,7 @@ And the following "groups" exist:
Scenario: Check modal is working for the "Edit group memebership" on find people page (Bug 1513265)
# Log in as "Admin" user
Given I log in as "admin" with password "Kupuhipa1"
Given I log in as "admin" with password "Kupuh1pa!"
And I choose "Find people" in "Groups" from main menu
And I follow "2" in the "Find people results" property
And I click on "Edit group membership" in "Liam User" row
......
......@@ -11,13 +11,13 @@ Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname |role |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | instone | internal | member |
| UserB | Kupuhipa1 | UserB@example.org | Bob | User | instone | internal | member |
| UserC | Kupuhipa1 | UserC@example.org | Cecilia | User | insttwo | internal | member |
| UserA | Kupuh1pa! | UserA@example.org | Angela | User | instone | internal | member |
| UserB | Kupuh1pa! | UserB@example.org | Bob | User | instone | internal | member |
| UserC | Kupuh1pa! | UserC@example.org | Cecilia | User | insttwo | internal | member |
Scenario: Find users in your institution and outside your institution
# Log in as a user
Given I log in as "UserA" with password "Kupuhipa1"
Given I log in as "UserA" with password "Kupuh1pa!"
And I choose "Find people" in "Groups" from main menu
# Searching within my own institution, I should only find users in my institution
......
......@@ -6,16 +6,16 @@ Feature: Mahara users can participate in groups
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
| UserB | Kupuhipa1 | UserB@example.org | Bob | User | mahara | internal | member |
| UserC | Kupuhipa1 | UserC@example.org | Cecilia | User | mahara | internal | member |
| UserD | Kupuhipa1 | UserD@example.org | Dmitri | User | mahara | internal | member |
| UserE | Kupuhipa1 | UserE@example.org | Evonne | User | mahara | internal | member |
| UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |
| UserB | Kupuh1pa! | UserB@example.org | Bob | User | mahara | internal | member |
| UserC | Kupuh1pa! | UserC@example.org | Cecilia | User | mahara | internal | member |
| UserD | Kupuh1pa! | UserD@example.org | Dmitri | User | mahara | internal | member |
| UserE | Kupuh1pa! | UserE@example.org | Evonne | User | mahara | 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 | ON | all | ON | ON | UserB, UserC | UserD |
Scenario: Join a group
Given I log in as "UserE" with password "Kupuhipa1"
Given I log in as "UserE" with password "Kupuh1pa!"
And I choose "Find groups" in "Groups" from main menu
When I click on "GroupA"
Then I should see "About"
......
......@@ -7,8 +7,8 @@ Feature: Commenting on a group page
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
| UserB | Kupuhipa1 | UserB@example.org | Bob | User | mahara | internal | member |
| UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |
| UserB | Kupuh1pa! | UserB@example.org | Bob | User | mahara | internal | member |
Given the following "groups" exist:
| name | owner | description | grouptype | open | invitefriends | editroles | submittableto | allowarchives | members | staff |
......@@ -19,7 +19,7 @@ Given the following "pages" exist:
| Page GroupA_01 | Page 01 | group | GroupA |
Scenario: As a user leaving a public comment on a group page (Bug 1509129)
Given I log in as "UserA" with password "Kupuhipa1"
Given I log in as "UserA" with password "Kupuh1pa!"
And I choose "Groups" from main menu
# Changing the settings of the block to change comment notification
And I click on "Settings" in "Group A" row
......@@ -35,7 +35,7 @@ Scenario: As a user leaving a public comment on a group page (Bug 1509129)
# Verifying that it saves
Then I should see "Comment submitted"
And I log out
And I log in as "UserB" with password "Kupuhipa1"
And I log in as "UserB" with password "Kupuh1pa!"
# Needs to navigate to see the comment and check it can be seen publicly
When I follow "GroupA"
When I follow "Pages and collections (tab)"
......@@ -45,7 +45,7 @@ Scenario: As a user leaving a public comment on a group page (Bug 1509129)
# As part of consolidating behat tests, this scenario has been added.
# Original feature title: Sending notification message when someone leaves a comment in a group page
Scenario: Adding a comment on a group page (Bug 1426983) and verifying the notification message.
Given I log in as "UserA" with password "Kupuhipa1"
Given I log in as "UserA" with password "Kupuh1pa!"
And I choose "Groups" from main menu
And I follow "GroupA"
And I follow "Pages and collections (tab)"
......@@ -56,7 +56,7 @@ Scenario: Adding a comment on a group page (Bug 1426983) and verifying the notif
# Log out as user 1
And I log out
# Log in as admin
When I log in as "UserB" with password "Kupuhipa1"
When I log in as "UserB" with password "Kupuh1pa!"
# Checking notification display on the dashboard
And I wait "1" seconds
Then I should see "New comment on Page GroupA_01"
......
......@@ -7,12 +7,12 @@ Feature: Members of a group should be listed based on their role
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname |role |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
| UserB | Kupuhipa1 | UserB@example.org | Bob | User | mahara | internal | member |
| UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |
| UserB | Kupuh1pa! | UserB@example.org | Bob | User | mahara | internal | member |
Scenario: Creating a group and adding members to it (Bug 1426983)
# Log in as "Admin" user
Given I log in as "admin" with password "Kupuhipa1"
Given I log in as "admin" with password "Kupuh1pa!"
# Creating Testing group 1
And I choose "Groups" from main menu
And I follow "Create group"
......@@ -22,21 +22,21 @@ Scenario: Creating a group and adding members to it (Bug 1426983)
# Log out as "Admin user"
And I log out
# Log in as user 1
And I log in as "UserA" with password "Kupuhipa1"
And I log in as "UserA" with password "Kupuh1pa!"
# Joining Testing group 1
And I choose "Find groups" in "Groups" from main menu
And I press "Join this group"
# Log out as user 1
And I log out
# Log in as user 2
And I log in as "UserB" with password "Kupuhipa1"
And I log in as "UserB" with password "Kupuh1pa!"
# Joining Testing group 1
And I choose "Find groups" in "Groups" from main menu
And I press "Join this group"
# Log out as user 2
And I log out
# Log in as "Admin" user
And I log in as "admin" with password "Kupuhipa1"
And I log in as "admin" with password "Kupuh1pa!"
# Going to Groups and setting it to sort by
And I choose "Groups" from main menu
And I follow "Testing Group 1"
......
......@@ -7,9 +7,9 @@ So I can see group page and check the title
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
| UserB | Kupuhipa1 | UserB@example.org | Bob | User | mahara | internal | member |
| UserC | Kupuhipa1 | UserC@example.org | Cecilia | User | mahara | internal | member |
| UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |
| UserB | Kupuh1pa! | UserB@example.org | Bob | User | mahara | internal | member |
| UserC | Kupuh1pa! | UserC@example.org | Cecilia | User | mahara | internal | member |
Given the following "groups" exist:
| name | owner | description | grouptype | open | invitefriends | editroles | submittableto | allowarchives | members | staff |
......@@ -21,7 +21,7 @@ Given the following "pages" exist:
Scenario: Copying a group page retains title (Bug 1519374)
# Make the group page copyable
Given I log in as "UserA" with password "Kupuhipa1"
Given I log in as "UserA" with password "Kupuh1pa!"
When I go to group "GroupA"
And I follow "Share" in the "Arrow-bar nav" property
And I click on "Edit access" in "Page GroupA_01" row
......@@ -31,7 +31,7 @@ Scenario: Copying a group page retains title (Bug 1519374)
And I press "Save"
And I log out
Given I log in as "UserB" with password "Kupuhipa1"
Given I log in as "UserB" with password "Kupuh1pa!"
And I am on homepage
When I follow "Page GroupA_01"
And I follow "Copy"
......@@ -40,7 +40,7 @@ Scenario: Copying a group page retains title (Bug 1519374)
Then I press "Save"
Scenario: Group homepage basic settings and skins can't be edited - Bug 1718806
Given I log in as "UserC" with password "Kupuhipa1"
Given I log in as "UserC" with password "Kupuh1pa!"
When I go to group "GroupA"
And I follow "Edit"
And I should not see "Settings"
......
......@@ -7,13 +7,13 @@ Feature: Clicking on Inbox
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
| UserB | Kupuhipa1 | UserB@example.org | Bob | User | mahara | internal | member |
| UserC | Kupuhipa1 | UserC@example.org | Cecilia | User | mahara | internal | member |
| UserD | Kupuhipa1 | UserD@example.org | Dmitri | User | mahara | internal | member |
| UserE | Kupuhipa1 | UserE@example.org | Evonne | User | mahara | internal | member |
| UserF | Kupuhipa1 | UserF@example.org | Fergus | User | mahara | internal | member |
| UserG | Kupuhipa1 | UserG@example.org | Gabi | User | mahara | internal | member |
| UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |
| UserB | Kupuh1pa! | UserB@example.org | Bob | User | mahara | internal | member |
| UserC | Kupuh1pa! | UserC@example.org | Cecilia | User | mahara | internal | member |
| UserD | Kupuh1pa! | UserD@example.org | Dmitri | User | mahara | internal | member |
| UserE | Kupuh1pa! | UserE@example.org | Evonne | User | mahara | internal | member |
| UserF | Kupuh1pa! | UserF@example.org | Fergus | User | mahara | internal | member |
| UserG | Kupuh1pa! | UserG@example.org | Gabi | User | mahara | internal | member |
And the following "messages" exist:
| emailtype | to | from | subject | messagebody | read | url | urltext |
......@@ -27,7 +27,7 @@ And the following "messages" exist:
Scenario: Clicking on the Inbox link on the right menu (Bug 1427019)
# Log in as users
Given I log in as "UserA" with password "Kupuhipa1"
Given I log in as "UserA" with password "Kupuh1pa!"
# Navigating to the Inbox via the 'more' link in the Inbox block
And I follow "More"
# Verifying that you do not see a page full of error messages
......
......@@ -13,9 +13,9 @@ Feature: Mahara user permissions in institutions
And the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
| UserB | Kupuhipa1 | UserB@example.org | Bob | User | instone | internal | admin |
| UserC | Kupuhipa1 | UserC@example.org | Cecilia | User | mahara | internal | member |
| UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |
| UserB | Kupuh1pa! | UserB@example.org | Bob | User | instone | internal | admin |
| UserC | Kupuh1pa! | UserC@example.org | Cecilia | User | mahara | internal | member |
And the following "pages" exist:
| title | description | ownertype | ownername |
......@@ -23,14 +23,14 @@ Feature: Mahara user permissions in institutions
Scenario: Register to an institution
# Member can register to an institution
Given I log in as "UserA" with password "Kupuhipa1"
Given I log in as "UserA" with password "Kupuh1pa!"
And I choose "Institution membership" in "Groups" from main menu
Then I should see "Request membership of an institution"
And I log out
Scenario: Site admin vs institution admin when sharing institution page
# Site admin can only share institution page with institution it belongs to
Given I log in as "admin" with password "Kupuhipa1"
Given I log in as "admin" with password "Kupuh1pa!"
And I choose "Pages and collections" in "Institutions" from administration menu
And I follow "Page InstOne_01"
And I follow "Edit"
......@@ -44,7 +44,7 @@ Feature: Mahara user permissions in institutions
And I log out
# Institution admin can share institution page with any of the institutions they belong to
Given I log in as "UserB" with password "Kupuhipa1"
Given I log in as "UserB" with password "Kupuh1pa!"
And I choose "Pages and collections" in "Institutions" from administration menu
And I follow "Page InstOne_01"
And I follow "Edit"
......@@ -54,7 +54,7 @@ Feature: Mahara user permissions in institutions
And I log out
# Add new member to institution via Institution -> Member's page
Given I log in as "admin" with password "Kupuhipa1"
Given I log in as "admin" with password "Kupuh1pa!"
And I choose "Members" in "Institutions" from administration menu
And I select "People who have not requested institution membership yet" from "Users to display:"
And I select "UserC" from "Non-members"
......
......@@ -4,9 +4,9 @@ Feature: Moderating group comments
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
| UserB | Kupuhipa1 | UserB@example.org | Bob | User | mahara | internal | member |
| UserC | Kupuhipa1 | UserC@example.org | Cecilia | User | mahara | internal | member |
| UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |
| UserB | Kupuh1pa! | UserB@example.org | Bob | User | mahara | internal | member |
| UserC | Kupuh1pa! | UserC@example.org | Cecilia | User | mahara | internal | member |
And the following "groups" exist:
| name | owner | description | grouptype | open | invitefriends | editroles | submittableto | allowarchives | members | staff |
......@@ -22,7 +22,7 @@ Background:
Scenario: Moderating a group comment when approve comments is turned on
# Adding a comment to a group page as a non-group member
Given I log in as "UserC" with password "Kupuhipa1"
Given I log in as "UserC" with password "Kupuh1pa!"
And I go to portfolio page "Page GroupA_01"
And I set the field "Comment" to "This is a comment from UserC"
And I enable the switch "Make comment public"
......@@ -31,13 +31,13 @@ Scenario: Moderating a group comment when approve comments is turned on
And I log out
# Checking that normal group member is not able to moderate comment
Given I log in as "UserB" with password "Kupuhipa1"
Given I log in as "UserB" with password "Kupuh1pa!"
And I go to portfolio page "Page GroupA_01"
Then I should not see "This is a comment from UserC"
And I log out
# Moderating the comment as group admin
Given I log in as "UserA" with password "Kupuhipa1"
Given I log in as "UserA" with password "Kupuh1pa!"
And I go to portfolio page "Page GroupA_01"
Then I should see "This is a comment from UserC"
And I press "Make comment public"
......@@ -7,9 +7,9 @@ Feature: Participation report to show pages in a collection
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
| UserB | Kupuhipa1 | UserB@example.org | Bob | User | mahara | internal | member |
| UserC | Kupuhipa1 | UserC@example.org | Cecilia | User | mahara | internal | member |
| UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |
| UserB | Kupuh1pa! | UserB@example.org | Bob | User | mahara | internal | member |
| UserC | Kupuh1pa! | UserC@example.org | Cecilia | User | mahara | internal | member |
And the following "groups" exist:
| name | owner | description | grouptype | open | invitefriends | editroles | submittableto | allowarchives | members | staff |
......@@ -33,7 +33,7 @@ Given the following "users" exist:
Scenario: In the participation report pages should be seen in a collection
# Log in as a normal userA
Given I log in as "UserA" with password "Kupuhipa1"
Given I log in as "UserA" with password "Kupuh1pa!"
# Edit access for Page 03
And I choose "Shared by me" in "Portfolio" from main menu
And I follow "Pages"
......@@ -99,7 +99,7 @@ Scenario: In the participation report pages should be seen in a collection
# Log out as UserA
And I log out
# Log in as UserB
Given I log in as "UserB" with password "Kupuhipa1"
Given I log in as "UserB" with password "Kupuh1pa!"
# UserB comments on the group page 01
And I choose "Groups" from main menu
And I follow "Group one"
......@@ -132,7 +132,7 @@ Scenario: In the participation report pages should be seen in a collection
# Log out as USer B
And I log out
# UserC comments on group page 01
Given I log in as "UserC" with password "Kupuhipa1"
Given I log in as "UserC" with password "Kupuh1pa!"
And I choose "Groups" from main menu
And I follow "searching for groups"
And I follow "Group one"
......@@ -167,7 +167,7 @@ Scenario: In the participation report pages should be seen in a collection
# Log out as User C
And I log out
# Log in as UserA
Given I log in as "UserA" with password "Kupuhipa1"