Commit d246f592 authored by Rebecca Blundell's avatar Rebecca Blundell Committed by Robert Lyon

Bug 1711998 - Standardise test data

Done:
-standardised data for background created
    users
    groups
    institutions
    pages
    collections

Not done:
-looked at user roles

Change-Id: Ibbdd62dda105192381e0785ed7b9d1f32604bbd3
parent beae0685
......@@ -7,7 +7,7 @@ Feature: Suckypasswords Test increase of array size
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Kupuhipa1 | test01@example.org | Pete | Mc | mahara | internal | member |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
Scenario: Admin can't change password to anything on suckypasswords list (Bug #844457)
Given I log in as "admin" with password "Kupuhipa1"
......@@ -35,7 +35,7 @@ Scenario: Admin can't change password to anything on suckypasswords list (Bug #8
And I log out
Scenario: Student can't change password to anything on suckypasswords list (Bug #844457)
Given I log in as "userA" with password "Kupuhipa1"
Given I log in as "UserA" with password "Kupuhipa1"
And I choose "Settings" from user menu
And I fill in "Current password" with "Kupuhipa1"
And I fill in "New password" with "abc123"
......
......@@ -11,8 +11,8 @@ Background:
| instone | Institution One | ON | OFF |
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Kupuhipa1 | test01@example.org | Pete | Mc | instone | internal | member |
| userB | Kupuhipa1 | test02@example.org | Sonny | Breezes | instone | internal | member |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | instone | internal | member |
| UserB | Kupuhipa1 | UserB@example.org | Bob | User | instone | internal | member |
Scenario: Accessing user reports
Given I log in as "admin" with password "Kupuhipa1"
......
......@@ -6,11 +6,11 @@ In order to be able to see the (Author's name hidden) link
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Kupuhipa1 | test01@example.org | Pete | Mc | mahara | internal | member |
| userB | Kupuhipa1 | test02@example.org | Son | Nguyen | mahara | internal | member |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
| UserB | Kupuhipa1 | UserB@example.org | Bob | User | mahara | internal | member |
And the following "pages" exist:
| title | description| ownertype | ownername |
| Page 1 | page P1 | user | userA |
| title | description | ownertype | ownername |
| Page UserA_01 | Page 01| user | UserA |
Scenario: Testing that views & collections are collated properly
# Turn on anonymous pages
......@@ -23,9 +23,9 @@ Scenario: Testing that views & collections are collated properly
And I log out
# Make page anonymous
Given I log in as "userA" with password "Kupuhipa1"
Given I log in as "UserA" with password "Kupuhipa1"
And I choose "Pages and collections" in "Portfolio" from main menu
And I follow "Page 1"
And I follow "Page UserA_01"
And I follow "Edit this page"
And I follow "Settings" in the "#toolbar-buttons" "css_element"
And I set the following fields to these values:
......@@ -36,7 +36,7 @@ Scenario: Testing that views & collections are collated properly
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 "Kupuhipa1"
And I am on homepage
Then I should see "(Author's name hidden)"
And I log out
......@@ -45,4 +45,4 @@ Scenario: Testing that views & collections are collated properly
And I am on homepage
Then should see "(Author's name hidden)"
And I follow "(Author's name hidden)"
Then I should see "userA"
Then I should see "UserA"
......@@ -6,10 +6,10 @@ Feature: Mahara users can change their account settings
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Kupuhipa1 | test01@example.org | Pete | Mc | mahara | internal | member |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
Scenario: Change notifications
Given I log in as "userA" with password "Kupuhipa1"
Given I log in as "UserA" with password "Kupuhipa1"
And I choose "Notifications" in "Settings" from user menu
And I select "Email" from "activity_viewaccess"
When I press "Save"
......
......@@ -7,17 +7,17 @@ So I can recover an account after forgetting my username or password
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Kupuhipa1 | test01@example.org | Pete | Mc | mahara | internal | member |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
And I am on homepage
And I follow "Lost username / password"
Scenario: Asking for a username reminder (Bug 1460911)
When I fill in "Email address or username" with "test01@example.org"
When I fill in "Email address or username" with "UserA@example.org"
And I press "Send request"
Then I should see "You should receive an email shortly with a link you can use to change the password for your account."
Scenario: Asking for a password reset (Bug 1460911)
When I fill in "Email address or username" with "userA"
When I fill in "Email address or username" with "UserA"
And I press "Send request"
Then I should see "You should receive an email shortly with a link you can use to change the password for your account."
......
......@@ -7,28 +7,28 @@ So I can prevent dictionary attacks on my passwords
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Kupuhipa1 | test01@example.org | Pete | Mc | mahara | internal | member |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
And I am on homepage
And I follow "Lost username / password"
Scenario: Too many bad password attempts
# I should not see any error message on the first 5 attempts
When I log in as "userA" with password "wrongpassword"
And I log in as "userA" with password "wrongpassword"
And I log in as "userA" with password "wrongpassword"
And I log in as "userA" with password "wrongpassword"
And I log in as "userA" with password "wrongpassword"
When I log in as "UserA" with password "wrongpassword"
And I log in as "UserA" with password "wrongpassword"
And I log in as "UserA" with password "wrongpassword"
And I log in as "UserA" with password "wrongpassword"
And I log in as "UserA" with password "wrongpassword"
Then I should not see "You have exceeded the maximum login attempts."
And I should see "Login"
# I've failed 5 times. Now even if I log in with the correct password I'm locked out.
When I log in as "userA" with password "Kupuhipa1"
When I log in as "UserA" with password "Kupuhipa1"
Then I should see "You have exceeded the maximum login attempts."
And I should see "Login"
# The cron should reset the limit, allowing me to log in again
When I trigger the cron
And I log in as "userA" with password "Kupuhipa1"
And I log in as "UserA" with password "Kupuhipa1"
# I'm logged in!
Then I should see "Dashboard"
And I log out
......@@ -37,12 +37,12 @@ Scenario: Too many bad password attempts
And I follow "Lost username / password"
Scenario: Asking for a username reminder (Bug 1460911)
When I fill in "Email address or username" with "test01@example.org"
When I fill in "Email address or username" with "UserA@example.org"
And I press "Send request"
Then I should see "You should receive an email shortly with a link you can use to change the password for your account."
Scenario: Asking for a password reset (Bug 1460911)
When I fill in "Email address or username" with "userA"
When I fill in "Email address or username" with "UserA"
And I press "Send request"
Then I should see "You should receive an email shortly with a link you can use to change the password for your account."
......@@ -52,7 +52,7 @@ Scenario: Trying a username or password that doesn't exist (Bug 1460911)
Then I should see "The email address or username you entered does not match any users for this site"
Scenario: Student can't change password to anything on suckypasswords list (Bug #844457)
Given I log in as "userA" with password "Kupuhipa1"
Given I log in as "UserA" with password "Kupuhipa1"
And I choose "Settings" from user menu
And I fill in "Current password" with "Kupuhipa1"
And I fill in "New password" with "abc123"
......
......@@ -7,7 +7,7 @@ I need to go to Notifications settings and see multiple options available
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| Bob | mahara1 | bob@example.org | Bob | Bobby | mahara | internal | member |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
Scenario: Confirm that multiple notification choices are available (Bug #1299993)
# Log in as admin
......@@ -45,9 +45,9 @@ Scenario: Confirm that multiple notification choices are available (Bug #1299993
# Log out as "Admin User"
And I log out
# Logging in as user1
Then I log in as "bob" with password "mahara1"
Then I log in as "UserA" with password "Kupuhipa1"
# Verifying log in was successful
And I should see "Bob Bobby"
And I should see "Angela User"
# Navigating to notification settings
And I choose "Notifications" in "Settings" from user menu
# Verifying the "None" option is not available for the following notifications
......
......@@ -7,7 +7,7 @@ Feature: Notification when a user is about to reach his quota
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname |role |
| bob | Kupuhipa1 | bob@example.org | Bob | Bobby | mahara | internal | member |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
Scenario Outline: When quota notification threshold is changed, send notifications to users who are now over threshold (Bug 1367539)
# Log in as "Admin" user
......@@ -31,9 +31,9 @@ Scenario Outline: When quota notification threshold is changed, send notificatio
# Log out as "Admin user"
And I log out
# Log in as user 1
When I log in as "bob" with password "Kupuhipa1"
When I log in as "UserA" with password "Kupuhipa1"
# Verifying log in was successful
And I should see "Bob Bobby"
And I should see "Angela User"
# Upload files to reach quota threshold of 50%
And I choose "Files" in "Content" from main menu
And I attach the file "Image1.jpg" to "File"
......
......@@ -11,10 +11,10 @@ Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Kupuhipa1 | test01@example.org | Pete | Mc | mahara | internal | member |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
Scenario: Social media credentials upon logging in as student (Bug 1432988)
When I log in as "userA" with password "Kupuhipa1"
When I log in as "UserA" with password "Kupuhipa1"
And I set the following fields to these values:
| Social network | Facebook URL |
| Your URL or username | https://www.facebook.com |
......
......@@ -7,16 +7,16 @@ Feature: Blocks are Retractable
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Kupuhipa1 | test01@example.org | Pete | Mc | mahara | internal | member |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
And the following "pages" exist:
| title | description| ownertype | ownername |
| Page 1 | page P1 | user | userA |
| title | description | ownertype | ownername |
| Page UserA_01 | Page 01| user | UserA |
Scenario: Make Text Block Retractable
Given I log in as "userA" with password "Kupuhipa1"
Given I log in as "UserA" with password "Kupuhipa1"
And I choose "Pages and collections" in "Portfolio" from main menu
And I click on "Edit" in "Page 1" panel menu
And I click on "Edit" in "Page UserA_01" panel menu
And I follow "Text"
And I press "Add"
And I set the field "Block title" to "Text Block 1"
......
......@@ -7,15 +7,15 @@ So I can benefit from the use of different configurations
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Kupuhipa1 | test01@example.org | Pete | Mc | mahara | internal | admin |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | admin |
Scenario: Testing functions for user search page (Bug 1431569)
Given I log in as "admin" with password "Kupuhipa1"
And I choose "User search" in "Users" from administration menu
And I follow "Advanced options"
And I follow "P" in the "div#firstnamelist" "css_element"
And I follow "userA"
And I should see "Account settings | Pete Mc (userA)"
And I follow "A" in the "div#firstnamelist" "css_element"
And I follow "UserA"
And I should see "Account settings | Angela User (UserA)"
# Flicking the switches to new settings
And I set the following fields to these values:
| Force password change on next login | 1 |
......@@ -27,6 +27,6 @@ Scenario: Testing functions for user search page (Bug 1431569)
| plugintype | plugin | field | value |
| artefact | internal | profilepublic | email |
And I set the following fields to these values:
| Search users | test01@example.org |
| Search users | UserA@example.org |
And I press the key "Enter" in the "Search users" field
Then I should see "userA"
Then I should see "UserA"
......@@ -7,10 +7,10 @@ Log in as user and confirm it works
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Kupuhipa1 | userA@example.com | Angela | User | mahara | internal | member |
| UserA | Kupuhipa1 | UserA@example.com | Angela | User | mahara | internal | member |
And the following "pages" exist:
| title | description| ownertype | ownername |
| Page 1 | Page 1 | user | userA |
| title | description | ownertype | ownername |
| Page UserA_01 | Page 01| user | UserA |
Scenario: Activate page themes setting and edit a page (Bug 1591304)
Given I log in as "admin" with password "Kupuhipa1"
......@@ -21,8 +21,8 @@ Scenario: Activate page themes setting and edit a page (Bug 1591304)
And I press "Update site options"
And I log out
# Now set a theme as a user and confirm logo changes
Given I log in as "userA" with password "Kupuhipa1"
And I follow "Page 1"
Given I log in as "UserA" with password "Kupuhipa1"
And I follow "Page UserA_01"
And I follow "Edit this page"
And I select "Modern" from "viewtheme"
Then the "div#logo-area" element should contain "/theme/modern/images/site-logo"
......@@ -8,9 +8,9 @@
Given I log in as "admin" with password "Kupuhipa1"
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Kupuhipa1 | test01@example.org | Pete | Mc | mahara | internal | member |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
And I choose "User search" in "Users" from administration menu
And I follow "Pete"
And I follow "Angela"
And I follow "Send message"
Then I should see "Recipients *"
And I should see "Subject *"
......
......@@ -7,17 +7,17 @@ So I can filter messages
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Kupuhipa1 | test01@example.org | Pete | Mc | mahara | internal | member |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
Given I log in as "admin" with password "Kupuhipa1"
And I choose "Users" from administration menu
And I follow "Pete"
And I follow "Angela"
And I follow "Send message"
And I fill in the following:
| Subject | Hi there |
| Message | This is a test message |
And I press "Send message"
And I log out
Given I log in as "userA" with password "Kupuhipa1"
Given I log in as "UserA" with password "Kupuhipa1"
And I choose "mail" from user menu by id
And I follow "Hi there"
And I follow "Reply"
......@@ -34,7 +34,7 @@ Scenario: Selection options to filter messages (Bug 1433342)
And I log out
# Then check what options a normal user has
Given I log in as "userA" with password "Kupuhipa1"
Given I log in as "UserA" with password "Kupuhipa1"
And I choose "Groups" from main menu
And I follow "Create group"
And I fill in "Group name" with "Jurassic Park"
......
......@@ -7,8 +7,8 @@
Scenario: Showing contextual help for pages under menu "Portfolio" (Bug 809297).
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Kupuhipa1 | test01@example.org | Pete | Mc | mahara | internal | member |
When I log in as "userA" with password "Kupuhipa1"
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
When I log in as "UserA" with password "Kupuhipa1"
And I choose "Pages and collections" in "Portfolio" from main menu
And I click on "Help"
And I should see "A page contains a selection of artefacts"
......
......@@ -7,26 +7,26 @@ I adjust the 'Hide members' and 'Hide members from members' group config options
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| groupmember | randomuser | randomuser@example.org | Group | Member | mahara | internal | member |
| groupadmin | randomteacher | randomteacher@example.org | Super | Teacher | mahara | internal | admin |
| grouptutor | randomtutor | randomtutor@example.org | Diligent | Tutor | mahara | internal | member |
| randomuser | randomuser2 | randomuser2@example.org | Random | Person | mahara | internal | member |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
| groupadmin | Kupuhipa1 | randomteacher@example.org | Super | Teacher | mahara | internal | admin |
| grouptutor | Kupuhipa1 | randomtutor@example.org | Diligent | Tutor | mahara | internal | member |
| randomuser | Kupuhipa1 | randomuser2@example.org | Random | Person | mahara | internal | member |
Given the following "groups" exist:
| name | owner | description | grouptype | open | invitefriends | editroles | submittableto | allowarchives | members | staff |
| Test group | groupadmin | My test group | course | ON | ON | all | ON | ON | groupmember | grouptutor |
| GroupA | groupadmin | GroupA owned by groupadmin | course | ON | ON | all | ON | ON | UserA | grouptutor |
Scenario: Check if we can hide members of a group based on the 'Hide members' setting
Given I log in as "groupadmin" with password "randomteacher"
Given I log in as "groupadmin" with password "Kupuhipa1"
And I choose "My groups" in "Groups" from main menu
And I follow "Edit \"Test group\" Settings"
And I follow "Edit \"GroupA\" Settings"
And I select "Hide tutors" from "editgroup_hidemembers"
And I press "Save group"
Then I should see "Group saved successfully"
And I log out
When I log in as "randomuser" with password "randomuser2"
When I log in as "randomuser" with password "Kupuhipa1"
And I choose "Find groups" in "Groups" from main menu
And I follow "Test group"
And I follow "GroupA"
Then I should not see "Diligent Tutor"
And I should see "Group Member"
And I should see "Angela User"
And I log out
......@@ -11,9 +11,9 @@ Background:
| insttwo | Institution Two | ON | ON |
And the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Kupuhipa1 | test01@example.org | Pete | Mc | mahara | internal | member |
| userB | Kupuhipa1 | test02@example.org | Miles | Morales | instone | internal | member |
| userC | Kupuhipa1 | test03@example.org | Jessica | Jones | mahara | internal | member |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
| UserB | Kupuhipa1 | UserB@example.org | Bob | User | instone | internal | member |
| UserC | Kupuhipa1 | UserC@example.org | Cecilia | User | mahara | internal | member |
Scenario: Viewing user statistics
Given I log in as "admin" with password "Kupuhipa1"
......
......@@ -7,20 +7,17 @@ So users can access features in Mahara.
Background:
Given the following "institutions" exist:
| name | displayname | registerallowed | registerconfirm |
| instone | instone | ON | OFF |
| instone | Institution One | ON | OFF |
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Kupuhipa1 | example04@example.org | student | student | mahara | internal | member |
| userB | Kupuhipa1 | example01@example.org | site | staff | mahara | internal | staff |
| instone | Kupuhipa1 | example05@example.org | instone | instone | instone | internal | staff |
| instone1 | Kupuhipa1 | example06@example.org | instone1 | instone1 | instone | internal | admin |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
| UserB | Kupuhipa1 | UserB@example.org | Bob | Staff | mahara | internal | staff |
| UserC | Kupuhipa1 | UserC@example.org | Cecilia | Staff | instone | internal | staff |
| AdminA | Kupuhipa1 | AdminA@example.org | Angela | Admin | instone | internal | admin |
Scenario: Checking menu items are available as a student (Bug 1467368)
Given I log in as "userA" with password "Kupuhipa1"
Given I log in as "UserA" with password "Kupuhipa1"
# Checking the main menu navigation headings
When I click on "Show main menu"
And I follow "Dashboard"
......@@ -60,7 +57,7 @@ Scenario: Checking menu items are available as a student (Bug 1467368)
Scenario: Checking menu items are available as site staff (Bug 1467368)
Given I log in as "userB" with password "Kupuhipa1"
Given I log in as "UserB" with password "Kupuhipa1"
Then I should not see "Administration" in the "#main-nav" "css_element"
# The one major difference a site staff has is site info link that leads to other links
And I click on "Show administration menu"
......@@ -134,7 +131,7 @@ Scenario: Checking menu items are available as Admin User (Bug 1467368)
Scenario: Checking menu items are available as Institution Administrator (Bug 1467368)
Given I log in as "instone1" with password "Kupuhipa1"
Given I log in as "AdminA" with password "Kupuhipa1"
# checking the sub navigation in Administration
And I click on "Show administration menu"
And I should not see "Configure site" in the "#main-nav-admin" "css_element"
......
......@@ -7,43 +7,43 @@
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Kupuhipa1 | test01@example.org | Pete | Mc | mahara | internal | member |
| userB | Kupuhipa1 | test02@example.org | Simon | Mc | mahara | internal | member |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
| UserB | Kupuhipa1 | UserB@example.org | Bob | User | mahara | internal | member |
And the following "pages" exist:
| title | description| ownertype | ownername |
| A's Page 01 | UserA's page 01 | user | userA |
| A's Page 02 | UserA's page 02 | user | userA |
| A's Page 03 | UserA's page 03 | user | userA |
| A's Page 04 | UserA's page 04 | user | userA |
| A's Page 05 | UserA's page 05 | user | userA |
| A's Page 06 | UserA's page 06 | user | userA |
| A's Page 07 | UserA's page 07 | user | userA |
| A's Page 08 | UserA's page 08 | user | userA |
| A's Page 09 | UserA's page 09 | user | userA |
| A's Page 10 | UserA's page 10 | user | userA |
| A's Page 11 | UserA's page 11 | user | userA |
| A's Page 12 | UserA's page 12 | user | userA |
| A's Page 13 | UserA's page 13 | user | userA |
| A's Page 14 | UserA's page 14 | user | userA |
| A's Page 15 | UserA's page 15 | user | userA |
| A's Page 16 | UserA's page 16 | user | userA |
| A's Page 17 | UserA's page 17 | user | userA |
| A's Page 18 | UserA's page 18 | user | userA |
| A's Page 19 | UserA's page 19 | user | userA |
| A's Page 20 | UserA's page 20 | user | userA |
| A's Page 21 | UserA's page 21 | user | userA |
| A's Page 22 | UserA's page 22 | user | userA |
| 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 UserA_13 | Page 13 | user | UserA |
| Page UserA_14 | Page 14 | user | UserA |
| Page UserA_15 | Page 15 | user | UserA |
| Page UserA_16 | Page 16 | user | UserA |
| Page UserA_17 | Page 17 | user | UserA |
| Page UserA_18 | Page 18 | user | UserA |
| Page UserA_19 | Page 19 | user | UserA |
| Page UserA_20 | Page 20 | user | UserA |
| Page UserA_21 | Page 21 | user | UserA |
| Page UserA_22 | Page 22 | user | UserA |
Scenario: Checking the jump list of the paginagtor (Bug 1409370)
Given I log in as "userA" with password "Kupuhipa1"
Given I log in as "UserA" with password "Kupuhipa1"
And I choose "Shared by me" in "Portfolio" from main menu
And I click on "Edit access" in "A's Page 01" row
And I set the select2 value "A's Page 01, A's Page 02, A's Page 03, A's Page 04, A's Page 05, A's Page 06, A's Page 07, A's Page 08, A's Page 09, A's Page 10, A's Page 11, A's Page 12, A's Page 13, A's Page 14, A's Page 15, A's Page 16, A's Page 17, A's Page 18, A's Page 19, A's Page 20, A's Page 21" for "editaccess_views"
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, Page UserA_06, Page UserA_07, Page UserA_08, Page UserA_09, Page UserA_10, Page UserA_11, Page UserA_12, Page UserA_13, Page UserA_14, Page UserA_15, Page UserA_16, Page UserA_17, Page UserA_18, Page UserA_19, Page UserA_20, Page UserA_21" for "editaccess_views"
And I select "Public" from "accesslist[0][searchtype]"
And I press "editaccess_submit"
And I log out
And I log in as "userB" with password "Kupuhipa1"
And I log in as "UserB" with password "Kupuhipa1"
And I choose "Shared with me" in "Portfolio" from main menu
And I check "Registered users"
And I check "Public"
......
......@@ -7,29 +7,29 @@ To see that they display in the most recently updated order
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Tuesd@y1 | test01@example.org | Test | B | mahara | internal | member |
| userB | Tuesd@y2 | test02@example.org | Test | C | mahara | internal | member |
| userC | Tuesd@y3 | test03@example.org | Test | A | mahara | internal | member |
| 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 |
Given the following "groups" exist:
| name | owner | description | grouptype | open | invitefriends | editroles | submittableto | allowarchives | members | staff |
| testgroup | admin | This is group 01 | standard | ON | ON | all | ON | ON | userA, userB, userC | |
| GroupA | admin | GroupA owned by admin | standard | ON | ON | all | ON | ON | UserA, UserB, UserC | |
Given the following "pages" exist:
| title | description| ownertype | ownername |
| test Page 01 | This is the page 1 | group | testgroup |
| test Page 02 | This is the page 2 | group | testgroup |
| test Page 03 | This is the page 3 | group | testgroup |
| title | description | ownertype | ownername |
| Page GroupA_01 | Page 01 | group | GroupA |
| Page GroupA_02 | Page 02 | group | GroupA |
| Page GroupA_03 | Page 03 | group | GroupA |
Scenario: Displaying shared pages in most recently updated order (Bug 1490569)
Given I log in as "admin" with password "Kupuhipa1"
And I choose "Groups" from main menu
And I follow "testgroup"
And I follow "GroupA"
And I follow "Edit this page"
And I scroll to the id "column-container"
And I configure the block "Group portfolios"
When I set the following fields to these values:
| Sort shared pages and collections by | Most recently updated |
And I click on "Save"
Then "test Page 01" "text" should appear before "test Page 02" "text"
And "test Page 03" "text" should appear after "test Page 02" "text"
Then "Page GroupA_01" "text" should appear before "Page GroupA_02" "text"
And "Page GroupA_03" "text" should appear after "Page GroupA_02" "text"
......@@ -7,97 +7,97 @@ Feature: List of shared pages to a group