Commit 1721bd04 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1719221- Checking the last modified date on a collection."

parents 94071ab6 25d0656d
......@@ -68,7 +68,20 @@ The list of shared pages must take into account of access date (Bug 1374163)
And I click on "Edit access" in "Page UserA_05" row
And I select "GroupA" from "accesslist[0][searchtype]"
And I press "Save"
#Checking the last modified date on a collection shared to a group.
And I choose "Shared by me" in "Portfolio" from main menu
And I follow "Edit access"
And I select "GroupA" from "accesslist[0][searchtype]"
And I press "Save"
Then I should see "Access rules were updated for 2 pages"
And I choose "Groups" from main menu
And I follow "GroupA"
# the formats "strftimedate" and "j F Y" both resolve to dd Month YYYY, which is wanted here.
And I should see the date "today" in the "#sharedcollectionlist" element with the format "d F Y"
# Edit access for Collection 01
And I choose "Shared by me" in "Portfolio" from main menu
And I click on "Edit access" in "Collection UserA_01" row
And I set the select2 value "Collection UserA_01" for "editaccess_collections"
And I select "GroupA" from "accesslist[0][searchtype]"
......
@javascript @core @core_artefact
Feature: Modified date on collections shared with a group
In order to seeing the last modified date on a collection shared to a group
As a student
So I can see when the collection was updated last
Scenario: Adding collection to group (Bug 1448807)
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
And the following "groups" exist:
| name | owner | description | grouptype | open | invitefriends | editroles | submittableto | allowarchives | members | admins |
| GroupA | UserA | GroupA owned by UserA | standard | ON | ON | all | ON | ON | UserA | UserA |
And the following "pages" exist:
| title | description | ownertype | ownername |
| Page UserA_01 | Page 01 | GroupA | UserA |
When I log in as "UserA" with password "Kupuhipa1"
And I choose "Pages and collections" in "Portfolio" from main menu
And I follow "Add"
And I click on "Collection" in the dialog
And I set the following fields to these values:
| Collection name * | The A team |
And I press "Next: Edit collection pages"
And I set the following fields to these values:
| Page UserA_01 | 1 |
And I press "Add pages"
And I follow "Done"
And I choose "Shared by me" in "Portfolio" from main menu
And I follow "Edit access"
And I select "GroupA" from "accesslist[0][searchtype]"
And I press "Save"
Then I should see "Access rules were updated for 1 page"
And I choose "Groups" from main menu
And I follow "GroupA"
# the formats "strftimedate" and "j F Y" both resolve to dd Month YYYY, which is wanted here.
And I should see the date "today" in the "#sharedcollectionlist" element with the format "d F Y"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment