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
...@@ -6,7 +6,7 @@ Feature: Switching switch on and off when editing a forum ...@@ -6,7 +6,7 @@ Feature: Switching switch on and off when editing a forum
Scenario: Turning on and off switches in the group forums tab (Bug 1431569) Scenario: Turning on and off switches in the group forums tab (Bug 1431569)
Given I log in as "admin" with password "Kupuhipa1" Given I log in as "admin" with password "Kupuhipa1"
And I choose "My groups" in "Groups" And I choose "My groups" in "Groups" from Main menu
And I follow "Create group" And I follow "Create group"
And I set the following fields to these values: And I set the following fields to these values:
| Group name | Turtles | | Group name | Turtles |
...@@ -40,4 +40,4 @@ Scenario: Turning on and off switches in the group forums tab (Bug 1431569) ...@@ -40,4 +40,4 @@ Scenario: Turning on and off switches in the group forums tab (Bug 1431569)
And I follow "Forum settings" And I follow "Forum settings"
# Checking "Automatically subscribe users" switchbox is on by default # Checking "Automatically subscribe users" switchbox is on by default
And the "edit_interaction_autosubscribe" checkbox should be checked And the "edit_interaction_autosubscribe" checkbox should be checked
And I press "Save" And I press "Save"
\ No newline at end of file
...@@ -6,6 +6,7 @@ I need to be able to turn the switches on and off and save the page ...@@ -6,6 +6,7 @@ I need to be able to turn the switches on and off and save the page
Scenario: Turning on and off switches on Group Edit page (Bug 1431569) Scenario: Turning on and off switches on Group Edit page (Bug 1431569)
Given I log in as "admin" with password "Kupuhipa1" Given I log in as "admin" with password "Kupuhipa1"
And I click on "Show Menu"
And I follow "Groups" And I follow "Groups"
And I follow "Create group" And I follow "Create group"
And I set the following fields to these values: And I set the following fields to these values:
......
...@@ -10,7 +10,7 @@ Scenario: Creating an institution (selenium test) ...@@ -10,7 +10,7 @@ Scenario: Creating an institution (selenium test)
# Verifying log in successful # Verifying log in successful
And I should see "Admin User" And I should see "Admin User"
# Creating an Institution # Creating an Institution
When I follow "Administration" And I click on "Show Administration Menu"
And I follow "Institutions" And I follow "Institutions"
And I press "Add institution" And I press "Add institution"
And I fill in the following: And I fill in the following:
......
...@@ -24,21 +24,20 @@ Feature: Mahara user permissions in institutions ...@@ -24,21 +24,20 @@ Feature: Mahara user permissions in institutions
Scenario: Register to an institution Scenario: Register to an institution
# Member can register to an institution # Member can register to an institution
Given I log in as "userA" with password "Kupuhipa1" Given I log in as "userA" with password "Kupuhipa1"
When I go to "account/institutions.php" And I choose "Institution membership" in "Groups" from Main menu
Then I should see "Request membership of an institution" Then I should see "Request membership of an institution"
And I log out And I log out
Scenario: Site admin vs institution admin when sharing institution page Scenario: Site admin vs institution admin when sharing institution page
# Site admin can only share institution page with institution it belongs to # Site admin can only share institution page with institution it belongs to
Given I log in as "admin" with password "Kupuhipa1" Given I log in as "admin" with password "Kupuhipa1"
And I follow "Administration" And I choose "Pages and collections" in "Institutions" from Admin menu
And I choose "Pages and collections" in "Institutions"
And I follow "Inst One page" And I follow "Inst One page"
And I follow "Edit this page" And I follow "Edit this page"
And I follow "Share page" And I follow "Share page"
Then the "accesslist[0][searchtype]" select box should contain "Institution One" Then the "accesslist[0][searchtype]" select box should contain "Institution One"
And the "accesslist[0][searchtype]" select box should not contain "Institution Two" And the "accesslist[0][searchtype]" select box should not contain "Institution Two"
And I choose "User search" in "Users" And I choose "User search" in "Users" from Admin menu
And I follow "userB" And I follow "userB"
And I press "Add user to institution" And I press "Add user to institution"
Then I should see "User added to institution \"Institution Two\"." Then I should see "User added to institution \"Institution Two\"."
...@@ -46,8 +45,7 @@ Feature: Mahara user permissions in institutions ...@@ -46,8 +45,7 @@ Feature: Mahara user permissions in institutions
# Institution admin can share institution page with any of the institutions they belong to # Institution admin can share institution page with any of the institutions they belong to
Given I log in as "userB" with password "Kupuhipa2" Given I log in as "userB" with password "Kupuhipa2"
And I follow "Administration" And I choose "Pages and collections" in "Institutions" from Admin menu
And I choose "Pages and collections" in "Institutions"
And I follow "Inst One page" And I follow "Inst One page"
And I follow "Edit this page" And I follow "Edit this page"
And I follow "Share page" And I follow "Share page"
...@@ -57,8 +55,7 @@ Feature: Mahara user permissions in institutions ...@@ -57,8 +55,7 @@ Feature: Mahara user permissions in institutions
# Add new member to institution via Institution -> Member's page # Add new member to institution via Institution -> Member's page
Given I log in as "admin" with password "Kupuhipa1" Given I log in as "admin" with password "Kupuhipa1"
And I follow "Administration" And I choose "Members" in "Institutions" from Admin menu
And I choose "Members" in "Institutions"
And I select "People who have not requested institution membership yet" from "Users to display:" And I select "People who have not requested institution membership yet" from "Users to display:"
And I wait until the page is ready And I wait until the page is ready
And I select "userC" from "Non-members" And I select "userC" from "Non-members"
......
...@@ -6,8 +6,7 @@ So I can have different settings for each institution ...@@ -6,8 +6,7 @@ So I can have different settings for each institution
Scenario: Turning switches on and off on Edit Institution page (Bug 1431569) Scenario: Turning switches on and off on Edit Institution page (Bug 1431569)
Given I log in as "admin" with password "Kupuhipa1" Given I log in as "admin" with password "Kupuhipa1"
And I follow "Administration" And I choose "Institutions" in "Institutions" from Admin menu
And I choose "Institutions" in "Institutions"
And I press "Add institution" And I press "Add institution"
And I set the following fields to these values: And I set the following fields to these values:
| Institution name * | Team Awesome | | Institution name * | Team Awesome |
...@@ -33,4 +32,3 @@ Scenario: Turning switches on and off on Edit Institution page (Bug 1431569) ...@@ -33,4 +32,3 @@ Scenario: Turning switches on and off on Edit Institution page (Bug 1431569)
| Email disabled | 1 | | Email disabled | 1 |
| Social media | 1 | | Social media | 1 |
And I press "Submit" And I press "Submit"
...@@ -9,7 +9,7 @@ Background: ...@@ -9,7 +9,7 @@ Background:
| username | password | email | firstname | lastname | institution | authname | role | | username | password | email | firstname | lastname | institution | authname | role |
| userA | Kupuhipa1 | test01@example.com | Pete | Mc | mahara | internal | member | | userA | Kupuhipa1 | test01@example.com | Pete | Mc | mahara | internal | member |
Given I log in as "admin" with password "Kupuhipa1" Given I log in as "admin" with password "Kupuhipa1"
And I follow "Administration" And I click on "Show Administration Menu"
And I follow "Users" And I follow "Users"
And I follow "Pete" And I follow "Pete"
And I follow "Send message" And I follow "Send message"
...@@ -19,6 +19,7 @@ Background: ...@@ -19,6 +19,7 @@ Background:
And I press "Send message" And I press "Send message"
And I log out And I log out
Given I log in as "userA" with password "Kupuhipa1" Given I log in as "userA" with password "Kupuhipa1"
And I click on "Show User Menu"
When I follow "mail" When I follow "mail"
And I follow "Hi there" And I follow "Hi there"
And I wait "1" seconds And I wait "1" seconds
...@@ -31,16 +32,18 @@ Background: ...@@ -31,16 +32,18 @@ Background:
Scenario: Selection options to filter messages (Bug 1433342) Scenario: Selection options to filter messages (Bug 1433342)
# First check what options an admin has # First check what options an admin has
Given I log in as "admin" with password "Kupuhipa1" Given I log in as "admin" with password "Kupuhipa1"
And I click on "Show User Menu"
When I follow "mail" When I follow "mail"
And the "Activity type:" select box should contain all "Administration messages | Comment | Contact us | Feedback on annotations | Group message | Institution message | Message from other users | New forum post | New page access | Objectionable content | Objectionable content in forum | Repeat virus upload | System message | Virus flag release | Watchlist" And the "Activity type:" select box should contain all "Administration messages | Comment | Contact us | Feedback on annotations | Group message | Institution message | Message from other users | New forum post | New page access | Objectionable content | Objectionable content in forum | Repeat virus upload | System message | Virus flag release | Watchlist"
And I log out And I log out
# Then check what options a normal user has # 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 click on "Show Menu"
And I follow "Groups" And I follow "Groups"
And I follow "Create group" And I follow "Create group"
And I fill in "Group name" with "Jurassic Park" And I fill in "Group name" with "Jurassic Park"
And I press "Save group" And I press "Save group"
And I am on homepage And I click on "Show User Menu"
When I follow "mail" When I follow "mail"
And the "Activity type:" select box should contain all "Comment | Feedback on annotations | Group message | Institution message | Message from other users | New forum post | New page access | Objectionable content in forum | System message | Watchlist" And the "Activity type:" select box should contain all "Comment | Feedback on annotations | Group message | Institution message | Message from other users | New forum post | New page access | Objectionable content in forum | System message | Watchlist"
...@@ -15,6 +15,7 @@ Scenario: Selecting select2 option via ajax (Bug #1520011) ...@@ -15,6 +15,7 @@ Scenario: Selecting select2 option via ajax (Bug #1520011)
# Log in as an Admin user # Log in as an Admin user
Given I log in as "admin" with password "Kupuhipa1" Given I log in as "admin" with password "Kupuhipa1"
# Send a message # Send a message
And I click on "Show User Menu"
And I follow "mail" And I follow "mail"
And I follow "Compose" And I follow "Compose"
And I fill in select2 input "sendmessage_recipients" with "userA" and select "Andrea Andrews (userA)" And I fill in select2 input "sendmessage_recipients" with "userA" and select "Andrea Andrews (userA)"
...@@ -28,4 +29,4 @@ Scenario: Selecting select2 option via ajax (Bug #1520011) ...@@ -28,4 +29,4 @@ Scenario: Selecting select2 option via ajax (Bug #1520011)
When I follow "Sent" When I follow "Sent"
And I follow "Test message" And I follow "Test message"
Then I should see "Test message with < & >" Then I should see "Test message with < & >"
And I should see "This is a test with > & <" And I should see "This is a test with > & <"
\ No newline at end of file
...@@ -16,7 +16,7 @@ Scenario: Sending messages between user and admin (Bug 1426983) ...@@ -16,7 +16,7 @@ Scenario: Sending messages between user and admin (Bug 1426983)
# Verifying log in was successful # Verifying log in was successful
And I should see "Admin User" And I should see "Admin User"
# Sending message 1 # Sending message 1
And I choose "Find friends" in "Groups" And I choose "Find friends" in "Groups" from Main menu
And I follow "Bob" And I follow "Bob"
And I follow "Send message" And I follow "Send message"
And I fill in the following: And I fill in the following:
...@@ -24,7 +24,7 @@ Scenario: Sending messages between user and admin (Bug 1426983) ...@@ -24,7 +24,7 @@ Scenario: Sending messages between user and admin (Bug 1426983)
| Message | This is a test message | | Message | This is a test message |
And I press "Send message" And I press "Send message"
# Sending message 2 # Sending message 2
And I choose "Find friends" in "Groups" And I choose "Find friends" in "Groups" from Main menu
And I follow "Bob" And I follow "Bob"
And I follow "Send message" And I follow "Send message"
And I fill in the following: And I fill in the following:
...@@ -32,14 +32,14 @@ Scenario: Sending messages between user and admin (Bug 1426983) ...@@ -32,14 +32,14 @@ Scenario: Sending messages between user and admin (Bug 1426983)
| Message | This is a test message2 | | Message | This is a test message2 |
And I press "Send message" And I press "Send message"
# Sending message 3 # Sending message 3
And I choose "Find friends" in "Groups" And I choose "Find friends" in "Groups" from Main menu
And I follow "Bob" And I follow "Bob"
And I follow "Send message" And I follow "Send message"
And I fill in the following: And I fill in the following:
| Subject | Hi there3 | | Subject | Hi there3 |
| Message | This is a test message3 | | Message | This is a test message3 |
And I press "Send message" And I press "Send message"
And I choose "Find friends" in "Groups" And I choose "Find friends" in "Groups" from Main menu
And I follow "Bob" And I follow "Bob"
And I follow "Request friendship" And I follow "Request friendship"
And I fill in the following: And I fill in the following:
...@@ -49,13 +49,14 @@ Scenario: Sending messages between user and admin (Bug 1426983) ...@@ -49,13 +49,14 @@ Scenario: Sending messages between user and admin (Bug 1426983)
| Message | Written with a pen, sealed with a kiss, if you are my friend, please answer me this | | Message | Written with a pen, sealed with a kiss, if you are my friend, please answer me this |
And I press "Request friendship" And I press "Request friendship"
# Log out as "Admin" user # Log out as "Admin" user
And I follow "Logout" And I log out
# Log in as user 1 # Log in as user 1
Then I log in as "Bob" with password "Kupuhipa1" Then I log in as "Bob" with password "Kupuhipa1"
# Confirming all messages has been received # Confirming all messages has been received
And I am on homepage And I am on homepage
And I wait "1" seconds And I wait "1" seconds
And I should see "Hi there" And I should see "Hi there"
And I click on "Show User Menu"
And I follow "mail" And I follow "mail"
And I should see "Hi there" And I should see "Hi there"
And I should see "Hi there2" And I should see "Hi there2"
......
...@@ -9,11 +9,10 @@ ...@@ -9,11 +9,10 @@
Given the following "users" exist: Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role | | username | password | email | firstname | lastname | institution | authname | role |
| userA | Kupuhipa1 | test01@example.com | Pete | Mc | mahara | internal | member | | userA | Kupuhipa1 | test01@example.com | Pete | Mc | mahara | internal | member |
When I follow "Administration" And I click on "Show Administration Menu"
And I follow "Users" And I follow "Users"
And I follow "Pete" And I follow "Pete"
And I follow "Send message" And I follow "Send message"
Then I should see "Recipients *" Then I should see "Recipients *"
And I should see "Subject *" And I should see "Subject *"
And I should see "Message *" And I should see "Message *"
...@@ -32,15 +32,14 @@ Background: ...@@ -32,15 +32,14 @@ Background:
Scenario: Installing framework module and activating for an institution Scenario: Installing framework module and activating for an institution
Given I log in as "admin" with password "Kupuhipa1" Given I log in as "admin" with password "Kupuhipa1"
And I follow "Administration" And I choose "Plugin administration" in "Extensions" from Admin menu
And I choose "Plugin administration" in "Extensions"
Then I should see "smartevidence" Then I should see "smartevidence"
And I should see "Hide" in the "form#activate_module_framework" "css_element" And I should see "Hide" in the "form#activate_module_framework" "css_element"
# Also make sure the annotation blocktype plugin is active # Also make sure the annotation blocktype plugin is active
And I press "Show" in the "form#activate_blocktype_annotation" "css_element" And I press "Show" in the "form#activate_blocktype_annotation" "css_element"
# Make sure we have a matrix config form # Make sure we have a matrix config form
And I choose "SmartEvidence" in "Extensions" And I choose "SmartEvidence" in "Extensions" from Admin menu
And I follow "Add framework" And I follow "Add framework"
And I attach the file "example.matrix" to "Matrix file" And I attach the file "example.matrix" to "Matrix file"
And I press "Upload matrix" And I press "Upload matrix"
...@@ -49,15 +48,14 @@ Scenario: Installing framework module and activating for an institution ...@@ -49,15 +48,14 @@ Scenario: Installing framework module and activating for an institution
Then I should see "Title of your framework" Then I should see "Title of your framework"
# Activate smartevidence in an institution # Activate smartevidence in an institution
And I choose "Institutions" in "Institutions" And I choose "Institutions" in "Institutions" from Admin menu
And I click on "Edit" in "No Institution" row And I click on "Edit" in "No Institution" row
And I enable the switch "Allow SmartEvidence" And I enable the switch "Allow SmartEvidence"
And I press "Submit" And I press "Submit"
Then I should see "Institution updated successfully." Then I should see "Institution updated successfully."
# Adding framework to existing collection # Adding framework to existing collection
And I follow "Return to site" And I choose "Pages and collections" in "Portfolio" from Main menu
And I choose "Pages and collections" in "Portfolio"
And I click on "CollA" panel menu And I click on "CollA" panel menu
And I click on "Edit" in "CollA" panel menu And I click on "Edit" in "CollA" panel menu
And I select "Title of your framework" from "SmartEvidence framework" And I select "Title of your framework" from "SmartEvidence framework"
...@@ -65,7 +63,7 @@ Scenario: Installing framework module and activating for an institution ...@@ -65,7 +63,7 @@ Scenario: Installing framework module and activating for an institution
Then I should see "Collection saved successfully." Then I should see "Collection saved successfully."
# Testing the collection navigation and matrix carousel # Testing the collection navigation and matrix carousel
And I choose "Pages and collections" in "Portfolio" And I choose "Pages and collections" in "Portfolio" from Main menu
And I click the panel "CollA" And I click the panel "CollA"
And I should see "You are on page 1/9" And I should see "You are on page 1/9"
And I should see "by Admin User (admin)" And I should see "by Admin User (admin)"
...@@ -93,7 +91,7 @@ Scenario: Installing framework module and activating for an institution ...@@ -93,7 +91,7 @@ Scenario: Installing framework module and activating for an institution
And I press "Save" And I press "Save"
# Re-click a matrix point to add some feedback # Re-click a matrix point to add some feedback
And I choose "Pages and collections" in "Portfolio" And I choose "Pages and collections" in "Portfolio" from Main menu
And I click the panel "CollA" And I click the panel "CollA"
And I click on the matrix point "3,4" And I click on the matrix point "3,4"
And I wait "1" seconds And I wait "1" seconds
...@@ -112,4 +110,4 @@ Scenario: Installing framework module and activating for an institution ...@@ -112,4 +110,4 @@ Scenario: Installing framework module and activating for an institution
And I wait "1" seconds And I wait "1" seconds
And I select "Partially meets the standard" from "Assessment" And I select "Partially meets the standard" from "Assessment"
And I press "Save" And I press "Save"
Then I should see "SmartEvidence updated" Then I should see "SmartEvidence updated"
\ No newline at end of file
...@@ -7,13 +7,13 @@ Feature: Testing Behat's functionality ...@@ -7,13 +7,13 @@ Feature: Testing Behat's functionality
Scenario: Meta test testing Behat's functionality (Bug #1387836) Scenario: Meta test testing Behat's functionality (Bug #1387836)
Given I log in as "admin" with password "Kupuhipa1" Given I log in as "admin" with password "Kupuhipa1"
And I am on homepage And I am on homepage
And I choose "Profile" in "Content" And I choose "Profile" in "Content" from Main menu
And I follow "About me" And I follow "About me"
And I set the following fields to these values: And I set the following fields to these values:
| First name | test first name | | First name | test first name |
| Last name | test last name | | Last name | test last name |
And I press "Save profile" And I press "Save profile"
And I choose "Pages and collections" in "Portfolio" And I choose "Pages and collections" in "Portfolio" from Main menu
# Creating a page # Creating a page
And I follow "Add" And I follow "Add"
And I click on "Page" in the dialog And I click on "Page" in the dialog
...@@ -22,7 +22,7 @@ Scenario: Meta test testing Behat's functionality (Bug #1387836) ...@@ -22,7 +22,7 @@ Scenario: Meta test testing Behat's functionality (Bug #1387836)
# Verifying it saved # Verifying it saved
And I should see "Page saved successfully" And I should see "Page saved successfully"
# Creating a collection # Creating a collection
And I choose "Pages and collections" in "Portfolio" And I choose "Pages and collections" in "Portfolio" from Main menu
And I follow "Add" And I follow "Add"
And I click on "Collection" in the dialog And I click on "Collection" in the dialog
And I set the field "Collection name" to "test collection name" And I set the field "Collection name" to "test collection name"
...@@ -40,11 +40,11 @@ Scenario: Meta test testing Behat's functionality (Bug #1387836) ...@@ -40,11 +40,11 @@ Scenario: Meta test testing Behat's functionality (Bug #1387836)
And I click on "test collection name" panel menu And I click on "test collection name" panel menu
And I should see "Delete" And I should see "Delete"
And I go to the homepage And I go to the homepage
And I choose "Export" in "Portfolio" And I choose "Export" in "Portfolio" from Main menu
And I move backward one page And I move backward one page
And I wait "3" seconds And I wait "3" seconds
And I move forward one page And I move forward one page
And I choose "Profile" in "Content" And I choose "Profile" in "Content" from Main menu
And the "First name" field should not contain "Jinelle" And the "First name" field should not contain "Jinelle"
And the "First name" field should contain "test first name" And the "First name" field should contain "test first name"
...@@ -17,7 +17,7 @@ Background: ...@@ -17,7 +17,7 @@ Background:
Scenario: Find users in your institution and outside your institution Scenario: Find users in your institution and outside your institution
# Log in as a user # Log in as a user
Given I log in as "bob" with password "mahara1" Given I log in as "bob" with password "mahara1"
And I choose "Find friends" in "Groups" And I choose "Find friends" in "Groups" from Main menu
And I wait "1" seconds And I wait "1" seconds
# Searching within my own institution, I should only find users in my institution # Searching within my own institution, I should only find users in my institution
......
...@@ -6,6 +6,5 @@ ...@@ -6,6 +6,5 @@
Scenario: Changing "logged-in users" to "registered users" (Bug 1373095) Scenario: Changing "logged-in users" to "registered users" (Bug 1373095)
Given I log in as "admin" with password "Kupuhipa1" Given I log in as "admin" with password "Kupuhipa1"
And I follow "Portfolio" When I choose "Shared by me" in "Portfolio" from Main menu
When I choose "Shared by me" in "Portfolio"
Then I should see "Registered users" Then I should see "Registered users"
...@@ -16,6 +16,7 @@ Scenario: Create users and search for them (Bug 897586) ...@@ -16,6 +16,7 @@ Scenario: Create users and search for them (Bug 897586)
# Verifying log in was successful # Verifying log in was successful
And I should see "Bob Bobby" And I should see "Bob Bobby"
# Creating page one # Creating page one
And I click on "Show Menu"
And I follow "Portfolio" And I follow "Portfolio"
And I follow "Add" And I follow "Add"
And I click on "Page" in the dialog And I click on "Page" in the dialog
...@@ -25,6 +26,7 @@ Scenario: Create users and search for them (Bug 897586) ...@@ -25,6 +26,7 @@ Scenario: Create users and search for them (Bug 897586)
# Verifying the page has been created # Verifying the page has been created
And I should see "Page saved successfully" And I should see "Page saved successfully"
# Creating page two # Creating page two
And I click on "Show Menu"
And I follow "Portfolio" And I follow "Portfolio"
And I follow "Add" And I follow "Add"
And I click on "Page" in the dialog And I click on "Page" in the dialog
...@@ -40,12 +42,13 @@ Scenario: Create users and search for them (Bug 897586) ...@@ -40,12 +42,13 @@ Scenario: Create users and search for them (Bug 897586)
And I press "Save" And I press "Save"
# Verifying that both of the pages have been shared # Verifying that both of the pages have been shared
And I should see "Access rules were updated for 2 pages." And I should see "Access rules were updated for 2 pages."
And I follow "Logout" And I log out
# Log in as the second student user # Log in as the second student user
And I log in as "jen" with password "mahara1" And I log in as "jen" with password "mahara1"
# Verifying log in was successful # Verifying log in was successful
And I should see "Jen Jenny" And I should see "Jen Jenny"
# Creating page three # Creating page three
And I click on "Show Menu"
And I follow "Portfolio" And I follow "Portfolio"
And I follow "Add" And I follow "Add"
And I click on "Page" in the dialog And I click on "Page" in the dialog
...@@ -55,6 +58,7 @@ Scenario: Create users and search for them (Bug 897586) ...@@ -55,6 +58,7 @@ Scenario: Create users and search for them (Bug 897586)
# Verifying the page has been created # Verifying the page has been created
And I should see "Page saved successfully" And I should see "Page saved successfully"
# Creating page 4 # Creating page 4
And I click on "Show Menu"
And I follow "Portfolio" And I follow "Portfolio"
And I follow "Add" And I follow "Add"
And I click on "Page" in the dialog And I click on "Page" in the dialog
...@@ -70,11 +74,10 @@ Scenario: Create users and search for them (Bug 897586) ...@@ -70,11 +74,10 @@ Scenario: Create users and search for them (Bug 897586)
And I press "Save" And I press "Save"
# Verifying that both of the pages have been shared # Verifying that both of the pages have been shared
And I should see "Access rules were updated for 2 pages." And I should see "Access rules were updated for 2 pages."
And I follow "Logout" And I log out
# Logging back in as admin to search for users on the shared with me page # Logging back in as admin to search for users on the shared with me page
And I log in as "admin" with password "Kupuhipa1" And I log in as "admin" with password "Kupuhipa1"
And I follow "Portfolio" And I choose "Shared with me" in "Portfolio" from Main menu
And I choose "Shared with me" in "Portfolio"
# Entering Bob name in the search box # Entering Bob name in the search box
And I fill in the following: And I fill in the following:
| Search: | Bob | | Search: | Bob |
......
...@@ -24,7 +24,7 @@ Scenario: Testing that views & collections are collated properly ...@@ -24,7 +24,7 @@ Scenario: Testing that views & collections are collated properly
# Make page anonymous # 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" And I choose "Pages and collections" in "Portfolio" from Main menu
And I follow "Page 1" And I follow "Page 1"
And I follow "Edit this page" And I follow "Edit this page"
And I follow "Edit title and description" And I follow "Edit title and description"
......
...@@ -9,9 +9,7 @@ Scenario: Error Message For Deleted Wall Post (Bug 1255222) ...@@ -9,9 +9,7 @@ Scenario: Error Message For Deleted Wall Post (Bug 1255222)
Given the following "users" exist: Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role | | username | password | email | firstname | lastname | institution | authname | role |
| userA | Kupuhipa1 | test01@example.com | Pete | Mc | mahara | internal | member | | userA | Kupuhipa1 | test01@example.com | Pete | Mc | mahara | internal | member |