Commit a323c8d8 by Rebecca Blundell Committed by Robert Lyon

Bug 1732297: Remove unnessesary steps from tests

Done:
Removed checks that user name is visible after login unless it's
related to what's being tested.
where possible added pages in background instead of manually
deleted character_limit, forgot_password and create_group as content was covered in other tests.
checked for other unnessesary "And I should see/ not see" steps
fixed stuff I broke

Change-Id: Ideaff604e49c6ca4b369bf96a3377e38d680d77d
parent b9ffa401
......@@ -49,7 +49,7 @@ define ("LOCATOR_CONSTANTS", json_encode(array(
'Matrix table' => array("#tablematrix", "css_element"),
'Toolbar buttons' => array("#toolbar-buttons", "css_element"),
#xpath_elements
'Secret urls - table row 2' => array("//table/tbody/tr[2]/td[4]/a", "xpath_element"),
'Secret urls - table row 1' => array("//table/tbody/tr[1]/td[4]/a", "xpath_element"),
'Multirecipientnotification' => array("//li[@id='module.multirecipientnotification']", "xpath_element"),
)));
......
......@@ -7,8 +7,7 @@ Feature: Create an Institution
Scenario: Creating an institution (selenium test)
# Log in as "Admin" user
Given I log in as "admin" with password "Kupuhipa1"
# Verifying log in successful
And I should see "Admin User"
# Creating an Institution
And I choose "Settings" in "Institutions" from administration menu
And I press "Add institution"
......
......@@ -59,8 +59,6 @@ Background:
Scenario: Create users by csv (Bug 1426983)
Given I log in as "admin" with password "Kupuhipa1"
#Verifying log in was successful
And I should see "Admin User"
#Adding 50 Users by csv
And I choose "Add users by CSV" in "Users" from administration menu
And I attach the file "50users_new.csv" to "CSV file"
......
......@@ -7,8 +7,6 @@ Feature: Creating/Deleting external links from the Links and Resources sideblock
Scenario: Creating and deleting external links (Selenium 1426983)
# Log in as "Admin" user
Given I log in as "admin" with password "Kupuhipa1"
# Verifying log in as successful
And I should see "Admin User"
# Entering an external link
And I choose "Menus" in "Configure site" from administration menu
And I select "Logged-in links and resources" from "Edit:"
......@@ -30,17 +28,14 @@ Scenario: Creating and deleting external links (Selenium 1426983)
Scenario: Make sure blogs do not show in site file link options (Bug #1537426)
# Log in as "Admin" user
Given I log in as "admin" with password "Kupuhipa1"
# I create a site journal
And I choose "Journals" in "Configure site" from administration menu
And I follow "Create journal"
And I fill in "Title" with "Site blog"
And I press "Create journal"
# I upload some site files
And I choose "Files" in "Configure site" from administration menu
And I attach the file "Image1.jpg" to "File"
# Entering an external link
And I choose "Menus" in "Configure site" from administration menu
And I select "Logged-in links and resources" from "Edit:"
......
@javascript @core @core_account
Feature: Lost username / password
In order to request a reminder of my password or username
As an admin/user
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 | 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 "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"
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: Trying a username or password that doesn't exist (Bug 1460911)
When I fill in "Email address or username" with "nosuchuser"
And I press "Send request"
Then I should see "The email address or username you entered does not match any users for this site"
......@@ -12,8 +12,6 @@ Background:
Scenario: Confirm that multiple notification choices are available (Bug #1299993)
# Log in as admin
Given I log in as "admin" with password "Kupuhipa1"
# Verifying log in was successful
And I should see "Admin User"
# Navigating to notification settings
And I choose "Site options" in "Configure site" from administration menu
And I follow "Notification settings"
......@@ -46,8 +44,6 @@ Scenario: Confirm that multiple notification choices are available (Bug #1299993
And I log out
# Logging in as user1
Then I log in as "UserA" with password "Kupuhipa1"
# Verifying log in was successful
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
......
......@@ -12,8 +12,6 @@ Background:
Scenario Outline: When quota notification threshold is changed, send notifications to users who are now over threshold (Bug 1367539)
# Log in as "Admin" user
Given I log in as "admin" with password "Kupuhipa1"
# Verifying log in was successful
And I should see "Admin User"
# Modifying user quota quota to 2MB
And I choose "Extensions" from administration menu
And I go to "admin/extensions/pluginconfig.php?plugintype=artefact&pluginname=file&type=file"
......@@ -32,8 +30,6 @@ Scenario Outline: When quota notification threshold is changed, send notificatio
And I log out
# Log in as user 1
When I log in as "UserA" with password "Kupuhipa1"
# Verifying log in was successful
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"
......
......@@ -26,6 +26,5 @@ Scenario: Make Text Block Retractable
And I scroll to the id "main-nav"
Then I click on "Display page"
Then I should see "Here is a new block"
Then I should see "Text Block 1"
And I collapse "Text Block 1" node
And I should not see "Here is a new block"
......@@ -7,8 +7,6 @@ Feature: Creating users and an institution enrolling users and changing their pa
Scenario: Creating an Institution assigning users and changing their passwords
# Log in as Admin
Given I log in as "admin" with password "Kupuhipa1"
# Verifying login was successful
And I should see "Admin User"
# Creating an Institution
And I choose "Settings" in "Institutions" from administration menu
And I press "Add institution"
......
......@@ -130,12 +130,10 @@ These list must take into account the sort option chosen in the block config (Bu
And I scroll to the base of id "groups"
And I follow "GroupA" in the "My groups box" property
# Group portfolios
And I should see "Page GroupA_01" in the "Group portfolios" property
And I should see "Page GroupA_05" in the "Group portfolios" property
And I should not see "Page GroupA_06" in the "Group portfolios" property
#And I follow "Next page" in the "div#groupviews_pagination" "css_element"
And I jump to next page of the list "groupviews_pagination"
And I should see "Page GroupA_06" in the "Group portfolios" property
And I should see "Page GroupA_08" in the "Group portfolios" property
And I should not see "Page GroupA_05" in the "Group portfolios" property
# Shared pages
......@@ -144,18 +142,13 @@ These list must take into account the sort option chosen in the block config (Bu
And I should not see "Page UserB_01" in the "Pages shared with this group" property
#And I follow "2" in the "div#sharedviews_pagination" "css_element"
And I jump to page "2" of the list "sharedviews_pagination"
And I should see "Page UserB_01" in the "Pages shared with this group" property
And I should see "Page UserB_05" in the "Pages shared with this group" property
And I should not see "Page UserA_05" in the "Pages shared with this group" property
And I should not see "Page UserB_06" in the "Pages shared with this group" property
#And I follow "3" in the "div#sharedviews_pagination" "css_element"
And I jump to page "3" of the list "sharedviews_pagination"
And I should see "Page UserB_06" in the "Pages shared with this group" property
And I should see "Page UserB_07" in the "Pages shared with this group" property
And I should not see "Page UserA_01" in the "Pages shared with this group" property
And I should not see "Page UserB_01" in the "Pages shared with this group" property
# Shared collections
And I should see "Collection UserA_01" in the "Collections shared with this group" property
And I should see "Collection UserA_05" in the "Collections shared with this group" property
And I should not see "Collection UserA_06" in the "Collections shared with this group" property
#And I follow "2" in the "div#sharedcollections_pagination" "css_element"
......@@ -178,7 +171,6 @@ These list must take into account the sort option chosen in the block config (Bu
And I log out
# Change the sort options in the "Group pages" block
Given I log in as "UserA" with password "Kupuhipa1"
And I should see "GroupA"
And I follow "GroupA (Administrator)"
And I should see "Page UserB_01"
And I follow "Pages and collections (tab)"
......@@ -263,13 +255,11 @@ These list must take into account the sort option chosen in the block config (Bu
And I press "Yes"
# Check the list of submitted pages/collections
And I should see "Page UserA_03" in the "Submissions to this group" property
And I should see "Page UserA_02" in the "Submissions to this group" property
And I should see "Collection UserA_03" in the "Submissions to this group" property
And I should not see "Page UserB_01" in the "Submissions to this group" property
#And I follow "2" in the "div#allsubmitted_pagination" "css_element"
And I jump to page "2" of the list "allsubmitted_pagination"
And I should see "Page UserA_01" in the "Submissions to this group" property
And I should see "Page UserB_01" in the "Submissions to this group" property
And I should not see "Page UserA_02" in the "Submissions to this group" property
And I log out
# Check pages and collections are shown in correct section
......@@ -297,15 +287,9 @@ These list must take into account the sort option chosen in the block config (Bu
# Submit pages and collections to the "GroupD" and "GroupA"
And I choose "Groups" from main menu
And I follow "GroupD"
And I select "Page UserC_02" from "group_view_submission_form_4_options"
And I press "Submit"
And I press "Yes"
And I select "Page UserC_03" from "group_view_submission_form_4_options"
And I press "Submit"
And I press "Yes"
And I select "Collection UserC_02" from "group_view_submission_form_4_options"
And I press "Submit"
And I press "Yes"
And I select "Collection UserC_03" from "group_view_submission_form_4_options"
And I press "Submit"
And I press "Yes"
......@@ -323,17 +307,12 @@ These list must take into account the sort option chosen in the block config (Bu
Given I log in as "UserA" with password "Kupuhipa1"
# Verifying log in was successful
And I should see "Angela"
And I should see "GroupD"
And I follow "GroupD"
And I should see "Page UserC_01" in the "Pages shared with this group" property
And I should not see "Page UserC_03" in the "Pages shared with this group" property
And I should see "Page UserC_04" in the "Pages shared with this group" property
And I should see "Page UserC_02" in the "Submissions to this group" property
And I should see "Page UserC_03" in the "Submissions to this group" property
And I should see "Collection UserC_01" in the "Collections shared with this group" property
And I should not see "Collection UserC_03" in the "Collections shared with this group" property
And I should see "Collection UserC_04" in the "Collections shared with this group" property
And I should see "Collection UserC_02" in the "Submissions to this group" property
And I should see "Collection UserC_03" in the "Submissions to this group" property
And I log out
Given I log in as "UserB" with password "Kupuhipa1"
......
......@@ -4,15 +4,16 @@ Feature: Annotation block is off by default
As an admin
So I can annotate people's work
Background:
Given the following "pages" exist:
| title | description | ownertype | ownername |
| Page admin_01 | Page 01 | admin | admin |
Scenario: Accessing annotation block (Bug 1443730)
Given I log in as "admin" with password "Kupuhipa1"
# Creating a page
And I choose "Pages and collections" in "Portfolio" from main menu
And I follow "Add"
And I click on "Page" in the dialog
And I fill in "My page is amazing" for "Page title *"
And I press "Save"
# Checking if annotation block is there
# Checking if annotation block is available by default
And I follow "Page admin_01"
And I follow "Edit this page"
And I expand "General" node
And I should not see "Annotation"
And I display the page
......@@ -21,7 +22,7 @@ Scenario: Accessing annotation block (Bug 1443730)
And I press "activate_blocktype_annotation_submit"
And I am on homepage
# Editing page to add annotation block
And follow "My page is amazing"
And follow "Page admin_01"
And I follow "Edit"
And I expand "General" node
And I follow "Annotation"
......@@ -33,6 +34,6 @@ Scenario: Accessing annotation block (Bug 1443730)
And I press "Save"
# Checking that the block saved by using the one thing on the page that changed.
And I am on homepage
And follow "My page is amazing"
And follow "Page admin_01"
And I should see "Annotation"
And I should see "Please grade me"
......@@ -4,6 +4,11 @@ In order to view mathslate plugin
As an admin
I need to be able to access mathslate in Tinymce
Background:
Given the following "pages" exist:
| title | description | ownertype | ownername |
| Page mahara_01 | Page 01 | institution | mahara |
Scenario: Making adjustments to the mathslate plugin for mahara (Bug 1472446)
Given I log in as "admin" with password "Kupuhipa1"
And I choose "Site options" in "Configure site" from administration menu
......@@ -11,18 +16,11 @@ Scenario: Making adjustments to the mathslate plugin for mahara (Bug 1472446)
And I enable the switch "Enable MathJax"
And I press "Update site options"
And I choose "Pages and collections" in "Configure site" from administration menu
And I follow "Add"
And I click on "Page" in the dialog
And I set the following fields to these values:
| Page title | test |
| Page description | testing |
And I press "Save"
And I choose "Pages and collections" in "Configure site" from administration menu
And I follow "test"
And I follow "Page mahara_01"
# Tinymce field adding a math equation
And I scroll to the id "feedbacktable"
And I fill in "\\[\\alpha A\\beta B\\]" in editor "Comment"
And I press "Comment"
And I choose "Pages and collections" in "Configure site" from administration menu
And I follow "test"
And I follow "Page mahara_01"
And I should see "αAβB"
......@@ -18,7 +18,6 @@ Scenario: Adding and deleting public comments
# Adding
Given I go to portfolio page "Page UserA_01"
# The label for message text area - anonymous users
And I should see "Comment"
And I fill in "Name" with "Joe Anonymous"
# No TinyMCE editor for anonymous users
And I fill in "Comment" with "Public comment by anonymous user"
......@@ -27,7 +26,6 @@ Scenario: Adding and deleting public comments
And I log in as "UserA" with password "Kupuhipa1"
And I go to portfolio page "Page UserA_01"
# The label for message text area - logged in users
And I should see "Add comment"
And I fill in "Comment by page owner" in editor "Comment"
And I press "Comment"
Then I should see "Joe Anonymous"
......@@ -56,7 +54,6 @@ Scenario: Adding and deleting public comments
Scenario: Add comments block to page
Given I go to portfolio page "Page UserA_01"
# The label for message text area - anonymous users
And I should see "Comment"
And I fill in "Name" with "Joe Anonymous"
# No TinyMCE editor for anonymous users
And I fill in "Comment" with "Public comment by anonymous user"
......
@javascript @core @core_group
Feature: Friend request character limit
In order to check the length limit of a message for a new friend request
As an student
So I can not send a long message in the friend request form.
Scenario: Sending a friend request with more than 255 characters (Bug 1373670)
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 |
Given I log in as "UserB" with password "Kupuhipa1"
And I choose "Find people" in "Groups" from main menu
And I follow "Angela User (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."
And I press "Request friendship"
Then I should see "This field must be at most 255 characters long."
......@@ -7,57 +7,52 @@ Feature: Delete groups
Scenario: Creating groups and deleting them (Selenium)
# Log in as "Admin" user
Given I log in as "admin" with password "Kupuhipa1"
# Verifying log in was successful
And I should see "Admin User"
# Creating 4 types of groups
# Create a Friend invitation only group
And I choose "Groups" from main menu
And I follow "Create group"
And I fill in "Group name" with "Admin Test Group"
And I disable the switch "Open"
And I enable the switch "Friend invitations"
And I press "Save group"
# Verifying group saved
And I should see "Group saved successfully"
# Create Request only group
And I choose "Groups" from main menu
And I follow "Create group"
And I fill in "Group name" with "Admin VIP Group"
And I disable the switch "Open"
And I enable the switch "Request"
And I press "Save group"
# Verifing group saved
And I should see "Group saved successfully"
# Create Open group
And I choose "Groups" from main menu
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"
# Verifing group saved
And I should see "Group saved successfully"
# Create Controlled group
And I choose "Groups" from main menu
And I follow "Create group"
And I fill in "Group name" with "Controlled groups"
And I disable the switch "Open"
And I enable the switch "Controlled"
And I press "Save group"
# Verifing group saved
And I should see "Group saved successfully"
# Deleting groups and verifying they are deleted
# Check if the group report page is there
And I choose "Groups" from main menu
And I follow "Public discussion"
And I follow "Report" in the ".arrow-bar" "css_element"
Then I should see "There are no pages shared with this group yet"
# Checking groups exist and can be deleted
And I choose "Groups" from main menu
And I follow "Admin Test Group"
And I follow "Delete \"Admin Test Group\""
And I press "Yes"
And I should see "Group deleted successfully"
And I follow "Controlled groups"
And I follow "Delete \"Controlled groups\""
And I press "Yes"
And I should see "Group deleted successfully"
And I follow "Admin VIP Group"
And I follow "Delete \"Admin VIP Group\""
And I press "Yes"
And I should see "Group deleted successfully"
And I follow "Public discussion"
And I follow "Delete \"Public discussion\""
And I press "Yes"
And I should see "Group deleted successfully"
# Verifying none of the deleted groups can be seen
And I should not see "Admin Test Group"
And I should not see "Controlled groups"
......
@javascript @core @core_group
Feature: Creating different types of groups
In order to create different types of groups
As an admin
So I can check that they are accessible
Scenario: Creating a group and adding users to it (Selenium)
# Log in as "Admin" user
Given I log in as "admin" with password "Kupuhipa1"
# Verifying log in was successful
And I should see "Admin User"
# Create a Friend invitation only group
When I choose "Groups" from main menu
And I follow "Create group"
And I fill in "Group name" with "Admin Test Group"
And I disable the switch "Open"
And I enable the switch "Friend invitations"
And I press "Save group"
And I should see "Journals" in the "Arrow-bar nav" property
# Create Request only group
And I choose "Groups" from main menu
And I follow "Create group"
And I fill in "Group name" with "Admin VIP Group"
And I disable the switch "Open"
And I enable the switch "Request"
And I press "Save group"
# Create Open group
And I choose "Groups" from main menu
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 choose "Groups" from main menu
And I follow "Create group"
And I fill in "Group name" with "Controlled groups"
And I disable the switch "Open"
And I enable the switch "Controlled"
And I press "Save group"
# Verify all groups has been created
And I choose "Groups" from main menu
Then I should see "Admin Test Group"
And I should see "Admin VIP Group"
And I should see "Controlled Group"
And I should see "Public discussion"
# Check if the group report page is there
And I follow "Public discussion"
And I follow "Report" in the "Arrow-bar nav" property
Then I should see "There are no pages shared with this group yet"
......@@ -24,8 +24,6 @@ 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"
# Verifying log in was successful
And I should see "Angela"
# Creating several groups to test
And I choose "Groups" from main menu
And I follow "Create group"
......
......@@ -17,7 +17,6 @@ Feature: Mahara users can participate in groups
Scenario: Join a group
Given I log in as "UserE" with password "Kupuhipa1"
And I choose "Find groups" in "Groups" from main menu
Then I should see "GroupA"
When I click on "GroupA"
Then I should see "About"
When I press "Join this group"
......
......@@ -27,28 +27,19 @@ Scenario: As a user leaving a public comment on a group page (Bug 1509129)
| Comment notifications | None |
And I press "Save group"
When I click on "Pages and collections" in the "Arrow-bar nav" property
And I follow "Add"
And I click on "Page" in the dialog
And I set the following fields to these values:
| Page title | Group Page 01 |
And I press "Save"
And I follow "Display page"
And I follow "Page GroupA_01"
And I fill in "Adding a comment to this field. Student = Awesome!" in editor "Comment"
# Checking that the make public is on
And I enable the switch "Make comment public"
And I press "Comment"
# Verifying that it saves
Then I should see "Comment submitted"
And I should see "Adding a comment to this field. Student = Awesome!"
And I log out
And I log in as "UserB" with password "Kupuhipa1"
# Needs to navigate to see the comment and check it can be seen publicly
Then I should see "GroupA"
When I follow "GroupA"
Then I should see "About | GroupA"
When I follow "Pages and collections (tab)"
Then I should see "Group Page 01" in the "Pages and Collections boxes" property
And I click the panel "Group Page 01"
And I click the panel "Page GroupA_01"
Then I should see "Adding a comment to this field. Student = Awesome!" in the "Comment text" property
# As part of consolidating behat tests, this scenario has been added.
......
......@@ -13,8 +13,6 @@ Background:
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"
# Verifying log in was successful
And I should see "Admin User"
# Creating Testing group 1
And I choose "Groups" from main menu
And I follow "Create group"
......@@ -25,8 +23,6 @@ Scenario: Creating a group and adding members to it (Bug 1426983)
And I log out
# Log in as user 1
And I log in as "UserA" with password "Kupuhipa1"
# Verifying log in was successful
And I should see "Angela User"
# Joining Testing group 1
And I choose "Find groups" in "Groups" from main menu
And I press "Join this group"
......@@ -34,8 +30,6 @@ Scenario: Creating a group and adding members to it (Bug 1426983)
And I log out
# Log in as user 2
And I log in as "UserB" with password "Kupuhipa1"
#Verifying log in was successful
And I should see "Bob User"
# Joining Testing group 1
And I choose "Find groups" in "Groups" from main menu
And I press "Join this group"
......
......@@ -42,10 +42,8 @@ Scenario: Copying a group page retains title (Bug 1519374)
Scenario: Group homepage basic settings and skins can't be edited - Bug 1718806
Given I log in as "UserC" with password "Kupuhipa1"
When I go to group "GroupA"
And I should see "Edit this page"
And I follow "Edit this page"
And I should not see "Settings"
And I should see "Edit layout"
When I follow "Edit layout"
And I should see "Layout"
And I should not see "Basics"
......
......@@ -13,8 +13,6 @@ Given the following "users" exist:
Scenario: Sending messages between user and admin (Bug 1426983)
# Log in as "Admin" user
Given I log in as "admin" with password "Kupuhipa1"
# Verifying log in was successful
And I should see "Admin User"
# Sending message 1
And I choose "Find people" in "Groups" from main menu
And I follow "Angela"
......@@ -23,22 +21,6 @@ Scenario: Sending messages between user and admin (Bug 1426983)
| Subject | Hi there |
| Message | This is a test message |
And I press "Send message"
# Sending message 2
And I choose "Find people" in "Groups" from main menu
And I follow "Angela"
And I follow "Send message"
And I fill in the following:
| Subject | Hi there2 |
| Message | This is a test message2 |
And I press "Send message"
# Sending message 3
And I choose "Find people" in "Groups" from main menu
And I follow "Angela"
And I follow "Send message"
And I fill in the following:
| Subject | Hi there3 |
| Message | This is a test message3 |
And I press "Send message"
And I choose "Find people" in "Groups" from main menu
And I follow "Angela"
And I follow "Request friendship"
......@@ -58,8 +40,6 @@ Scenario: Sending messages between user and admin (Bug 1426983)
And I should see "Hi there"
And I choose "mail" from user menu by id
And I should see "Hi there"
And I should see "Hi there2"
And I should see "Hi there3"
And I should not see "Call stack"
# Log out as Angela
And I log out
......
......@@ -4,60 +4,39 @@ In order for allow and moderate comments to save correctly
As an admin
I need to be able to save it once and not have to do it again in Edit Access screen
Scenario: Correctly saving access rules for allowing comments (Bug 1201174)
Background:
#Logging in and Creating a group
Given I log in as "admin" with password "Kupuhipa1"
And I choose "Groups" from main menu
Then I should see "My groups"
When I follow "Create group"
Then I should see "Create group"
When I set the following fields to these values:
| editgroup_name | Test Group1 |
And I press "editgroup_submit"
Then I should see "Group saved successfully"
Given the following "groups" exist:
| name | owner | description | grouptype | open | invitefriends | editroles | submittableto | allowarchives | members | staff |
| GroupA | admin | GroupA owned by admin | standard | ON | ON | all | ON | ON | | |
#Creating a page to share with group
And I choose "Portfolio" from main menu
Then I should see "Pages"
And I follow "Add"
And I click on "Page" in the dialog
Then I should see "No title"
When I set the following fields to these values:
| settings_title | Group page1 |
Then I press "Save"
Then I should see "Page saved successfully"
And the following "pages" exist:
| title | description | ownertype | ownername |
| Page admin_01 | Page 01 | admin | admin |
# Sharing Page
When I follow "Share" in the "Toolbar buttons" property
Then I should see "Edit access"
When I set the following fields to these values:
| accesslist[0][searchtype] | Test Group1 |
And I press "Save"
Scenario: Correctly saving access rules for allowing comments (Bug 1201174)
When I choose "Portfolio" from main menu
And I follow "Group page1"
And I follow "Edit this page"
When I follow "Share" in the "Toolbar buttons" property
And I scroll to the base of id "accessurl_more_open"
And I follow "Advanced options"
Given I log in as "admin" with password "Kupuhipa1"
And I choose "Pages and collections" in "Portfolio" from main menu
And I click on "Edit" in "Page admin_01" panel menu
# Sharing Page
And I follow "Share" in the "Toolbar buttons" property
And I set the following fields to these values:
| accesslist[0][searchtype] | GroupA |
And I disable the switch "Allow comments"
And I scroll to the id "accessurl_submit_container"
And I press "Save"
When I choose "Portfolio" from main menu
And I follow "Group page1"
And I follow "Edit this page"
When I choose "Pages and collections" in "Portfolio" from main menu
And I click on "Edit" in "Page admin_01" panel menu
When I follow "Share" in the "Toolbar buttons" property
And I scroll to the base of id "accessurl_more_open"
And I check "accesslist[0][allowcomments]"
And I press "Save"
Then I should see "Share"
# Checking if checked option worked
When I choose "Portfolio" from main menu
And I follow "Group page1"
And I follow "Edit this page"
When I choose "Pages and collections" in "Portfolio" from main menu
And I click on "Edit" in "Page admin_01" panel menu
When I follow "Share" in the "Toolbar buttons" property
Then I should see "Edit access"
And I expand the section "Advanced options"
......
......@@ -56,7 +56,6 @@ Scenario: Testing that views & collections are collated properly
When I log out
And I log in as "UserB" with password "Kupuhipa1"
And I choose "Shared with me" in "Portfolio" from main menu
Then I should see "Page UserA_03"
# I should see collections & individual pages
And I should see "Collection UserA_01 (2 pages)"
......
......@@ -10,6 +10,10 @@ Given the following "users" exist:
| 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 UserA_01 | Page 01 | user | UserA |
Scenario: Creating and accessing social media buttons (Bug 1448948)
Given I log in as "UserA" with password "Kupuhipa1"
And I choose "Content" from main menu
......@@ -34,12 +38,8 @@ Scenario: Creating and accessing social media buttons (Bug 1448948)
And I select "Yahoo Messenger" from "Social network"
And I fill in "maharayahoo" for "Your URL or username"
And I press "Save"
And I choose "Portfolio" from main menu
And I follow "Add"
And I click on "Page" in the dialog
And I set the following fields to these values: