Commit 25d0656d authored by Niranjan Bandi's avatar Niranjan Bandi Committed by Rebecca Blundell
Browse files

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

-test/behat/features/social/modified_date.feature is now merged into test/behat/features/site_content/shared_with_group.feature

Change-Id: Ic0db83120af073969c423af914456600aac9e8e6
parent 835a7b7b
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -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]"
+0 −37
Original line number Diff line number Diff line
@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"