Commit e4b63976 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic Committed by Robert Lyon
Browse files

Bug 1657565: New nav behat tests

behatnotneeded

Change-Id: Ifadc7e911efb905660c2a7bce0193551016a5fac
parent 5097eece
......@@ -34,16 +34,16 @@
| 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 |
And I follow "Portfolio"
And I choose "Portfolio"
And I click the panel "A's Page 01"
And I follow "Edit this page"
And I follow "Share page"
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 select "Public" from "accesslist[0][searchtype]"
And I press "editaccess_submit"
And I follow "Logout"
And I log out
And I log in as "userB" with password "Kupuhipa1"
And I choose "Shared with me" in "Portfolio"
And I choose "Shared with me" in "Portfolio" from Main menu
And I click on "Advanced options"
And I click on "Select all"
And I select "title" from "sort"
......
......@@ -9,6 +9,7 @@ Scenario: Create a page and secret URLs to copy (Bug 1426983)
Given I log in as "admin" with password "Kupuhipa1"
# Verifying log in was successful
And I should see "Admin User"
And I click on "Show Menu"
When I follow "Portfolio"
And I follow "Add"
And I click on "Page" in the dialog
......@@ -19,9 +20,9 @@ Scenario: Create a page and secret URLs to copy (Bug 1426983)
And I should see "Page saved successfully"
And I display the page
# Navigating to shared by be to click button
And I choose "Shared by me" in "Portfolio"
And I choose "Shared by me" in "Portfolio" from Main menu
And I click on "Edit secret URL access"
And I press "New secret URL"
# Verifying Secret URLs was created
And I choose "Shared by me" in "Portfolio"
And I choose "Shared by me" in "Portfolio" from Main menu
Then I should see "1"
......@@ -15,6 +15,7 @@ And the following "users" exist:
Scenario: Creating and accessing social media buttons (Bug 1448948)
Given I log in as "userA" with password "Kupuhipa1"
And I click on "Show Menu"
And I follow "Content"
And I follow "Social media"
And I follow "New social media account"
......@@ -22,6 +23,7 @@ Scenario: Creating and accessing social media buttons (Bug 1448948)
| Social network * | Facebook URL |
| Your URL or username * | https://www.facebook.com/wellingtonphoenixfc |
And I press "Save"
And I click on "Show Menu"
And I follow "Portfolio"
And I follow "Add"
And I click on "Page" in the dialog
......@@ -43,11 +45,10 @@ Scenario: Creating and accessing social media buttons (Bug 1448948)
And I select "Public" from "accesslist[0][searchtype]"
And I press "Save"
And I should see "Access rules were updated for 1 page"
And I follow "Logout"
And I log out
# Logging in as userB to try see the buttons
Given I log in as "userB" with password "Kupuhipa1"
And I wait "1" seconds
And I follow "Open source is for winners"
And I should see "Social Media"
And I should see "Facebook"
......@@ -10,8 +10,7 @@
| userA | Kupuhipa1 | test01@example.com | Pete | Mc | mahara | internal | member |
| userB | Kupuhipa1 | test02@example.com | Paul | Mc | mahara | internal | member |
Given I log in as "userB" with password "Kupuhipa1"
When I follow "Groups"
And I choose "Find friends" in "Groups"
And I choose "Find friends" in "Groups" from Main menu
And I follow "Pete Mc (userA)"
And I follow "Request friendship"
And I fill in "Message" with "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent sed aliquet mauris. Nam et semper velit. Vestibulum porta dictum aliquet. Curabitur venenatis gravida nibh, ac consectetur risus pellentesque quis. Vivamus vitae erat sit amet augue interdum fermentum id ut arcu. Aliquam est lectus, iaculis a vulputate sed, tristique et nunc."
......
......@@ -10,6 +10,7 @@ Scenario: Creating a group and adding users to it (Selenium)
# Verifying log in was successful
And I should see "Admin User"
# Create a Friend invitation only group
And I click on "Show Menu"
When I follow "Groups"
And I follow "Create group"
And I fill in "Group name" with "Admin Test Group"
......@@ -18,6 +19,7 @@ Scenario: Creating a group and adding users to it (Selenium)
And I press "Save group"
And I should see "Journals" in the "div.arrow-bar" "css_element"
# Create Request only group
And I click on "Show Menu"
And I follow "Groups"
And I follow "Create group"
And I fill in "Group name" with "Admin VIP Group"
......@@ -25,12 +27,14 @@ Scenario: Creating a group and adding users to it (Selenium)
And I enable the switch "Request"
And I press "Save group"
# Create Open group
And I click on "Show Menu"
And I follow "Groups"
And I follow "Create group"
And I fill in "Group name" with "Public discussion"
And I enable the switch "Participation report"
And I press "Save group"
# Create Controlled group
And I click on "Show Menu"
And I follow "Groups"
And I follow "Create group"
And I fill in "Group name" with "Controlled groups"
......@@ -38,6 +42,7 @@ Scenario: Creating a group and adding users to it (Selenium)
And I enable the switch "Controlled"
And I press "Save group"
# Verify all groups has been created
And I click on "Show Menu"
And I follow "Groups"
Then I should see "Admin Test Group"
And I should see "Admin VIP Group"
......@@ -46,4 +51,4 @@ Scenario: Creating a group and adding users to it (Selenium)
# Check if the group report page is there
And I follow "Public discussion"
And I follow "Report"
Then I should see "There are no pages shared with this group yet"
\ No newline at end of file
Then I should see "There are no pages shared with this group yet"
......@@ -10,6 +10,7 @@ Scenario: Creating groups and deleting them (Selenium)
# Verifying log in was successful
And I should see "Admin User"
# Creating 4 types of groups
And I click on "Show Menu"
When I follow "Groups"
And I follow "Create group"
And I fill in "Group name" with "Admin Test Group"
......@@ -18,6 +19,7 @@ Scenario: Creating groups and deleting them (Selenium)
And I press "Save group"
# Verifying group saved
And I should see "Group saved successfully"
And I click on "Show Menu"
And I follow "Groups"
And I follow "Create group"
And I fill in "Group name" with "Admin VIP Group"
......@@ -26,12 +28,14 @@ Scenario: Creating groups and deleting them (Selenium)
And I press "Save group"
# Verifing group saved
And I should see "Group saved successfully"
And I click on "Show Menu"
And I follow "Groups"
And I follow "Create group"
And I fill in "Group name" with "Public discussion"
And I press "Save group"
# Verifing group saved
And I should see "Group saved successfully"
And I click on "Show Menu"
And I follow "Groups"
And I follow "Create group"
And I fill in "Group name" with "Controlled groups"
......@@ -41,6 +45,7 @@ Scenario: Creating groups and deleting them (Selenium)
# Verifing group saved
And I should see "Group saved successfully"
# Deleting groups and verifying they are deleted
And I click on "Show Menu"
Then I follow "Groups"
And I follow "Admin Test Group"
And I follow "Delete \"Admin Test Group\""
......
......@@ -27,6 +27,7 @@ Scenario: Create groups and limit display on profile page (Bug 1426983)
# Verifying log in was successful
And I should see "Pete"
# Creating several groups to test
And I click on "Show Menu"
And I choose "Groups"
And I follow "Create group"
And I set the following fields to these values:
......@@ -34,6 +35,7 @@ Scenario: Create groups and limit display on profile page (Bug 1426983)
| Group description | This is group 11 |
And I press "Save group"
# Changing the amount of groups seen in My groups block
And I click on "Show Menu"
When I choose "Portfolio"
And I follow "Profile page"
And I follow "Edit this page"
......@@ -41,6 +43,7 @@ Scenario: Create groups and limit display on profile page (Bug 1426983)
And I set the following fields to these values:
| Maximum number of groups to display | 3 |
And I press "Save"
And I click on "Show Menu"
And I choose "Portfolio"
And I follow "Profile page"
And I should see "11 groups"
......@@ -13,21 +13,21 @@ Given the following "users" exist:
Scenario: Uploading groups via CSV and editing as an admin (Bug 1420590)
Given I log in as "admin" with password "Kupuhipa1"
And I follow "Administration"
And I choose "Add groups by CSV" in "Groups (Administer groups)"
And I choose "Add groups by CSV" in "Groups" from Admin menu
# Attaching the groups via CSV
And I attach the file "groups.csv" to "CSV file"
When I press "Add groups by CSV"
And I should see "Your CSV file was processed successfully."
And I choose "Update group members by CSV" in "Groups (Administer groups)"
And I choose "Update group members by CSV" in "Groups" from Admin menu
# Verify the warnings there
And I should see "Every CSV file upload removes all existing group members, including group administrators, completely. Ensure that you have at least one administrator for each group in your CSV file."
# Attaching the group members via CSV
And I attach the file "groupmembers.csv" to "CSV file"
And I press "Update group members by CSV"
And I follow "Logout"
And I log out
# Logging back in as a user
And I log in as "userA" with password "Kupuhipa1"
And I click on "Show Menu"
And I follow "Groups"
And I follow "Group Two"
# Editing the group
......@@ -47,9 +47,10 @@ Scenario: Uploading groups via CSV and editing as an admin (Bug 1420590)
And the following "groups" exist:
| name | owner | description | grouptype | open | invitefriends | editroles | submittableto | allowarchives | members | staff |
| group 01 | userB | This is group 01 | course | ON | ON | all | ON | ON | admin, userA | admin |
And I follow "Logout"
And I log out
# Logging back in as a user
And I log in as "userB" with password "Kupuhipa1"
And I click on "Show Menu"
And I follow "Groups"
And I follow "group 01"
# Editing the group
......@@ -60,9 +61,10 @@ Scenario: Uploading groups via CSV and editing as an admin (Bug 1420590)
# Checking for regression errors
And I should not see "Invalid argument supplied for foreach()"
And I should see "Group saved successfully"
And I follow "Logout"
And I log out
# Logging in as Admin
Given I log in as "admin" with password "Kupuhipa1"
And I click on "Show Menu"
And I follow "Groups"
And I follow "Group awesome sauce"
# Making sure I cant edit a group I am not owner of
......
......@@ -28,7 +28,7 @@ And the following "groups" exist:
Scenario: Check modal is working for the "Edit group memebership" on find friends page (Bug 1513265)
# Log in as "Admin" user
Given I log in as "admin" with password "Kupuhipa1"
And I choose "Find friends" in "Groups"
And I choose "Find friends" in "Groups" from Main menu
And I follow "2" in the "div#friendslist_pagination" "css_element"
And I follow "Edit group membership"
Then I should see "Apply changes"
......@@ -16,7 +16,7 @@ Feature: Mahara users can participate in groups
| group 01 | userA | This is group 01 | standard | ON | ON | all | ON | ON | userB, userC | userD |
Scenario: Join a group
Given I log in as "userE" with password "Kupuhipa1"
When I go to "group/find.php"
And I choose "Find groups" in "Groups" from Main menu
Then I should see "group 01"
When I click on "group 01"
Then I should see "About"
......
......@@ -18,6 +18,7 @@ Given the following "groups" exist:
Scenario: As a user leaving a public comment on a group page (Bug 1509129)
Given I log in as "userA" with password "Kupuhipa1"
And I click on "Show Menu"
And I choose "Groups"
# Changing the settings of the block to change comment notification
And I click on "Settings" in the "div.groupuserstatus" "css_element"
......
......@@ -16,37 +16,39 @@ Scenario: Creating a group and adding members to it (Bug 1426983)
# Verifying log in was successful
And I should see "Admin User"
# Creating Testing group 1
And I click on "Show Menu"
And I follow "Groups"
And I follow "Create group"
And I fill in "Group name" with "Testing Group 1"
And I select "Course: Member, Tutor, Admin" from "Roles"
And I press "Save group"
# Log out as "Admin user"
And I follow "Logout"
And I log out
# Log in as user 1
And I log in as "bob" with password "Kupuhipa1"
# Verifying log in was successful
And I should see "Bob Bobby"
# Joining Testing group 1
And I choose "Find groups" in "Groups"
And I choose "Find groups" in "Groups" from Main menu
And I press "Join this group"
# Log out as user 1
And I follow "Logout"
And I log out
# Log in as user 2
And I log in as "jen" with password "Kupuhipa1"
#Verifying log in was successful
And I should see "Jen Jenny"
# Joining Testing group 1
And I choose "Find groups" in "Groups"
And I choose "Find groups" in "Groups" from Main menu
And I press "Join this group"
# Log out as user 2
And I follow "Logout"
And I log out
# Log in as "Admin" user
And I log in as "admin" with password "Kupuhipa1"
# Going to Groups and setting it to sort by
And I click on "Show Menu"
And I follow "Groups"
And I follow "Testing Group 1"
And I follow "Members"
And I follow "Members" in the ".arrow-bar" "css_element"
# Verifying they are out of order first
And "Bob Bobby (bob)" "link" should appear before "Jen Jenny (jen)" "link"
And I select "Name Z to A" from "sorted by:"
......
......@@ -21,6 +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"
And I click on "Show Menu"
When I follow "Groups"
And I follow "testgroup"
And I follow "Share" in the "ul.nav-inpage" "css_element"
......@@ -38,4 +39,3 @@ Scenario: Copying a group page retains title (Bug 1519374)
And the following fields match these values:
| Page title | Test Page |
Then I press "Save"
......@@ -94,14 +94,14 @@ These list must take into account the sort option choosen in the block config (B
And I should see "Group Z"
# Share pages and collections to the "Group Z"
# Edit access for Page userA_01
And I choose "Shared by me" in "Portfolio"
And I choose "Shared by me" in "Portfolio" from Main menu
And I follow "Pages" in the "div#main-column-container" "css_element"
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 "Group Z" from "accesslist[0][searchtype]"
And I press "Save"
# Edit access for Collection userA_01
And I choose "Shared by me" in "Portfolio"
And I choose "Shared by me" in "Portfolio" from Main menu
And I follow "Collections" in the "div#main-column-container" "css_element"
And I click on "Edit access" in "Collection userA_01" row
And I should not see "Collection userA_02" in the "ul.select2-selection__rendered" "css_element"
......@@ -116,7 +116,7 @@ These list must take into account the sort option choosen in the block config (B
And I should see "Group Z"
# Share pages and collections to the "Group Z"
# Edit access for pages
And I choose "Shared by me" in "Portfolio"
And I choose "Shared by me" in "Portfolio" 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 "Group Z" from "accesslist[0][searchtype]"
......@@ -167,7 +167,7 @@ These list must take into account the sort option choosen in the block config (B
# Check that we can see submitted pages before editing/saving the configuration for group pages block
Given I log in as "userB" with password "Kupuhipa1"
And I should see "Group Z"
And I choose "My groups" in "Groups"
And I choose "My groups" in "Groups" from Main menu
And I follow "Group Z"
And I select "Page userB_01" from "group_view_submission_form_2_options"
And I press "Submit"
......@@ -202,6 +202,7 @@ These list must take into account the sort option choosen in the block config (B
And I press "Save"
And I display the page
# Check if it is now in the first page of the list of group pages
And I click on "Show Menu"
And I follow "Groups"
And I follow "Group Z"
And I should see "Page Group Z_06" in the "ul#groupviewlist" "css_element"
......@@ -209,6 +210,7 @@ These list must take into account the sort option choosen in the block config (B
And I jump to next page of the list "groupviews_pagination"
And I should not see "Page Group Z_06" in the "ul#groupviewlist" "css_element"
# Update the shared page "Page userA_01"
And I click on "Show Menu"
And I choose "Portfolio"
And I click on "Page userA_01" panel menu
And I click on "Edit" in "Page userA_01" panel menu
......@@ -217,6 +219,7 @@ These list must take into account the sort option choosen in the block config (B
And I press "Save"
And I display the page
# Check if it is now in the first page of the list of shared pages
And I click on "Show Menu"
And I choose "Groups"
And I follow "Group Z"
And I should see "Page userA_01" in the "ul#sharedviewlist" "css_element"
......@@ -224,12 +227,13 @@ These list must take into account the sort option choosen in the block config (B
And I jump to page "2" of the list "sharedviews_pagination"
And I should not see "Page userA_01" in the "ul#sharedviewlist" "css_element"
# Update the shared collection "Collection userA_06"
And I choose "Pages and collections" in "Portfolio"
And I choose "Pages and collections" in "Portfolio" from Main menu
And I click on "Collection userA_06" panel menu
And I click on "Edit" in "Collection userA_06" panel menu
And I set the field "Collection description" to "This is the collection 06 (updated)"
And I press "Save"
# Check if it is now in the first page of the list of shared collections
And I click on "Show Menu"
And I choose "Groups"
And I follow "Group Z"
And I should see "Collection userA_06" in the "ul#sharedcollectionlist" "css_element"
......@@ -275,20 +279,21 @@ These list must take into account the sort option choosen in the block config (B
And I should see "Group W"
# Share pages and collections to the standard "Group W"
# Edit access for Page userC_01, Page userC_03, Page userC_04
And I choose "Shared by me" in "Portfolio"
And I choose "Shared by me" in "Portfolio" from Main menu
And I follow "Pages" in the "div#main-column-container" "css_element"
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 "Group W" from "accesslist[0][searchtype]"
And I press "Save"
# Edit access for Collection userC_01, Collection userC_03, Collection userC_04
And I choose "Shared by me" in "Portfolio"
And I choose "Shared by me" in "Portfolio" from Main menu
And I follow "Collections" in the "div#main-column-container" "css_element"
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 "Group W" from "accesslist[0][searchtype]"
And I press "Save"
# Submit pages and collections to the "Group W" and "Group Z"
And I click on "Show Menu"
And I choose "Groups"
And I follow "Group W"
And I select "Page userC_02" from "group_view_submission_form_3_options"
......@@ -303,6 +308,7 @@ These list must take into account the sort option choosen in the block config (B
And I select "Collection userC_03" from "group_view_submission_form_3_options"
And I press "Submit"
And I press "Yes"
And I click on "Show Menu"
And I choose "Groups"
And I follow "Group Z"
And I select "Page userC_04" from "group_view_submission_form_2_options"
......@@ -351,20 +357,21 @@ These list must take into account the sort option choosen in the block config (B
And I should see "Group X"
# Share pages and collections to the "Group X"
# Edit access for Page userC_09, Page userC_11, Page userC_12
And I choose "Shared by me" in "Portfolio"
And I choose "Shared by me" in "Portfolio" from Main menu
And I follow "Pages" in the "div#main-column-container" "css_element"
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 "Group X" from "accesslist[0][searchtype]"
And I press "Save"
# Edit access for Collection userC_05, Collection userC_07, Collection userC_08
And I choose "Shared by me" in "Portfolio"
And I choose "Shared by me" in "Portfolio" from Main menu
And I follow "Collections" in the "div#main-column-container" "css_element"
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 "Group X" from "accesslist[0][searchtype]"
And I press "Save"
# Submit pages and collections to the "Group X" and "Group Z"
And I click on "Show Menu"
And I choose "Groups"
And I follow "Group X"
And I select "Page userC_10" from "group_view_submission_form_4_options"
......@@ -379,6 +386,7 @@ These list must take into account the sort option choosen in the block config (B
And I select "Collection userC_07" from "group_view_submission_form_4_options"
And I press "Submit"
And I press "Yes"
And I click on "Show Menu"
And I choose "Groups"
And I follow "Group Z"
And I select "Page userC_12" from "group_view_submission_form_2_options"
......
......@@ -18,14 +18,14 @@ Given the following "groups" exist:
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"
And I choose "My groups" in "Groups"
And I choose "My groups" in "Groups" from Main menu
And I follow "Edit \"Test group\" 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"
And I choose "Find groups" in "Groups"
And I choose "Find groups" in "Groups" from Main menu
And I follow "Test group"
Then I should not see "Diligent Tutor"
And I should see "Group Member"
......
......@@ -10,6 +10,7 @@ Scenario: Moving pages within a group (Bug 1426983)
# Verifying log in was successful
And I should see "Admin user"
# Creating a group
And I click on "Show Menu"
When I follow "Groups"
And I follow "Create group"
And I set the following fields to these values:
......@@ -45,5 +46,5 @@ Scenario: Moving pages within a group (Bug 1426983)
And I follow "Testing topic 1"
And I should see "Testing moving topic"
And I should see "Posts: 1"
And I click on "Show Menu"
And I follow "Groups"
......@@ -15,7 +15,7 @@ Scenario Outline: When quota notification threshold is changed, send notificatio
# Verifying log in was successful
And I should see "Admin User"
# Modifying user quota quota to 2MB
And I follow "Administration"
And I click on "Show Administration Menu"
And I follow "Extensions"
And I go to "admin/extensions/pluginconfig.php?plugintype=artefact&pluginname=file&type=file"
And I follow "Default user quota"
......@@ -30,18 +30,19 @@ Scenario Outline: When quota notification threshold is changed, send notificatio
# Verifying changes were made
And I should see "Settings saved"
# Log out as "Admin user"
And follow "Logout"
And I log out
# Log in as user 1
When I log in as "bob" with password "Kupuhipa1"
# Verifying log in was successful
And I should see "Bob Bobby"
# Upload files to reach quota threshold of 50%
And I choose "Files" in "Content"
And I choose "Files" in "Content" from Main menu
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image2.png" to "File"
And I attach the file "Image3.png" to "File"
# Verifying notification for reaching user quota threshold have been received
And I am on homepage
And I click on "Show User Menu"
And I follow "mail"
# Regression testing for previous errors
And I should not see "Call stack"
......
......@@ -24,6 +24,7 @@ Background:
Scenario: Adding a comment on a group page (Bug 1426983)
Given I log in as "bob" with password "Kupuhipa1"
And I click on "Show Menu"
And I follow "Groups"
And I follow "Test group 1"
And I follow "Pages and collections (tab)"
......@@ -32,13 +33,14 @@ Scenario: Adding a comment on a group page (Bug 1426983)
And I fill in "Testing comment notifications" in editor "Message"
And I press "Comment"
# Log out as user 1
And I follow "Logout"
And I log out
# Log in as "Admin" user
When I log in as "admin" with password "Kupuhipa1"
# Checking notification display on the dashboard
And I wait "1" seconds
Then I should see "New comment on Testing group page 01"
# Checking notifications also appear in my inbox
And I click on "Show User Menu"
And I follow "mail"
And I follow "New comment on Testing group page 01"
And I should see "Testing comment notifications"
......@@ -23,6 +23,7 @@ Given the following "pages" exist:
Scenario: Displaying shared pages in most recently updated order (Bug 1490569)
Given I log in as "admin" with password "Kupuhipa1"
And I click on "Show Menu"
And I follow "Groups"
And I follow "testgroup"
And I follow "Edit this page"
......@@ -33,4 +34,3 @@ Scenario: Displaying shared pages in most recently updated order (Bug 1490569)
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"
......@@ -44,14 +44,14 @@ The list of shared pages must take into account of access date (Bug 1374163)
And I should see "Pete"
And I should see "Group Z"
# Edit access for Page 01
And I choose "Shared by me" in "Portfolio"
And I choose "Shared by me" in "Portfolio" from Main menu
And I follow "Pages" in the "div#main-column-container" "css_element"
And I click on "Edit access" in "Page 01" row
And I select "Group Z" from "accesslist[0][searchtype]"
And I set the field "accesslist[0][startdate]" to "2015/06/15 03:00"
And I press "Save"
# Edit access for Page 02
And I choose "Shared by me" in "Portfolio"
And I choose "Shared by me" in "Portfolio" from Main menu
And I follow "Pages" in the "div#main-column-container" "css_element"
And I click on "Edit access" in "Page 02" row
And I select "Group Z" from "accesslist[0][searchtype]"
......@@ -60,7 +60,7 @@ The list of shared pages must take into account of access date (Bug 1374163)
And I should see "The end date for 'group' access cannot be in the past."
And I press "Cancel"
# Edit access for Page 03
And I choose "Shared by me" in "Portfolio"
And I choose "Shared by me" in "Portfolio" from Main menu
And I follow "Pages" in the "div#main-column-container" "css_element"
And I click on "Edit access" in "Page 03" row
And I follow "Advanced options"
......@@ -68,20 +68,20 @@ The list of shared pages must take into account of access date (Bug 1374163)
| Access start date/time | 2015/06/15 00:00 |
And I press "Save"
# Edit access for Page 05
And I choose "Shared by me" in "Portfolio"
And I choose "Shared by me" in "Portfolio" from Main menu
And I follow "Pages" in the "div#main-column-container" "css_element"
And I click on "Edit access" in "Page 05" row
And I select "Group Z" from "accesslist[0][searchtype]"
And I press "Save"
# Edit access for Collection 01
And I choose "Shared by me" in "Portfolio"
And I choose "Shared by me" in "Portfolio" from Main menu
And I click on "Edit access" in "Collection 01" row
And I set the select2 value "Collection 01" for "editaccess_collections"
And I select "Group Z" from "accesslist[0][searchtype]"
And I set the field "accesslist[0][startdate]" to "2015/06/15 03:00"
And I press "Save"
# Edit access for Collection 03
And I choose "Shared by me" in "Portfolio"
And I choose "Shared by me" in "Portfolio" from Main menu
And I click on "Edit access" in "Collection 03" row
And I set the select2 value "Collection 03" for "editaccess_collections"
And I follow "Advanced options"
......@@ -89,12 +89,13 @@ The list of shared pages must take into account of access date (Bug 1374163)
| Access start date/time | 2015/06/15 00:00 |
And I press "Save"
# Edit access for Collection 05