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 @@ I need to expand all the fieldsets
Scenario: Expanding all the fieldsets
Given I log in as "admin" with password "Kupuhipa1"
When I follow "Administration"
And I click on "Show Administration Menu"
And I follow "Configure site"
Then I expand all fieldsets
And I should see "Event log expiry"
......@@ -6,8 +6,7 @@ So I can benefit from the use of group categories
Scenario: Turning switches on and off on group categories page (Bug 1431569)
Given I log in as "admin" with password "Kupuhipa1"
And I follow "Administration"
And I choose "Group categories" in "Groups (Administer groups)"
And I choose "Group categories" in "Groups" from Admin menu
# Flicking the switch to the opposite setting
And I set the following fields to these values:
| Enable group categories | 1 |
......
......@@ -6,7 +6,7 @@
Scenario:Injecting sql in groups search field
Given I log in as "admin" with password "Kupuhipa1"
And I follow "Groups"
And I choose "My groups" in "Groups" from Main menu
And I click on "Create group"
And I set the following fields to these values:
| Group name | <script>alert(1);</script> |
......@@ -15,12 +15,10 @@ Scenario:Injecting sql in groups search field
| Hide group | Off |
And I press "Save group"
And I should see "Group saved successfully"
And I follow "Administration"
And I follow "Groups"
And I choose "Administer groups" in "Groups" from Admin menu
When I set the following fields to these values:
| search_query | <script>alert(1);</script> |
And I press "search_submit"
And I follow "Privacy statement"
And I should see "Introduction"
Then I go to "homepage"
......@@ -17,9 +17,8 @@ Background:
Scenario: Viewing user statistics
Given I log in as "admin" with password "Kupuhipa1"
And I follow "Administration"
# Users without an institution
When I choose "Statistics" in "Institutions"
When I choose "Statistics" in "Institutions" from Admin menu
Then I should see "Institution statistics for 'Institution One'"
And I should see "Users 1"
# Users with an institution
......
......@@ -15,7 +15,7 @@ Scenario: Confirm that multiple notification choices are available (Bug #1299993
# Verifying log in was successful
And I should see "Admin User"
# Navigating to notification settings
When I follow "Administration"
When I click on "Show Administration Menu"
And I follow "Configure site"
And I follow "Notification settings"
# Verifying "None" option is not available for these notifications
......@@ -44,14 +44,13 @@ Scenario: Confirm that multiple notification choices are available (Bug #1299993
And I select "None" from "Objectionable content in forum"
And I press "Update site options"
# Log out as "Admin User"
And I follow "Logout"
And I log out
# Logging in as user1
Then I log in as "bob" with password "mahara1"
# Verifying log in was successful
And I should see "Bob Bobby"
# Navigating to notification settings
And I follow "Settings"
And I follow "Notifications"
And I choose "Notifications" in "Settings" from User menu
# Verifying the "None" option is not available for the following notifications
And the "System message" field should not contain "None"
And the "Message from other users" field should not contain "None"
......
......@@ -6,8 +6,7 @@
Scenario: Admin logs in and checks notification settings (Bug 1388682)
Given I log in as "admin" with password "Kupuhipa1"
When I click on "Administration"
And I choose "Site options" in "Configure site"
And I choose "Site options" in "Configure site" from Admin menu
And I click on "Notification settings"
Then I should see "Contact us"
And I should see "Comment"
......
......@@ -10,6 +10,7 @@ Scenario: Clicking randomly around Mahara (Bug: 1426983)
# Verifying log in was successful
And I should see "Admin User"
# Checking Content Menu
And I click on "Show Menu"
When I follow "Content"
# Checking About me tabs
And I follow "Contact information"
......@@ -17,96 +18,98 @@ Scenario: Clicking randomly around Mahara (Bug: 1426983)
And I follow "General"
And I follow "About me"
# Checking Profile picture submenu
And I choose "Profile pictures" in "Content"
And I choose "Profile pictures" in "Content" from Main menu
# Checking Files Submenu
And I choose "Files" in "Content"
And I choose "Files" in "Content" from Main menu
# Checking Journal submenu
And I choose "Journals" in "Content"
And I choose "Journals" in "Content" from Main menu
# Checking Resume submenu and tabs
And I choose "Résumé" in "Content"
And I choose "Résumé" in "Content" from Main menu
And I follow "Education and employment"
And I follow "Achievements"
And I follow "Goals and skills"
And I follow "Interests"
And I follow "Introduction"
# Checking Plans submenu
And I choose "Plans" in "Content"
And I choose "Plans" in "Content" from Main menu
# Checking Notes submenu
And I choose "Notes" in "Content"
And I choose "Notes" in "Content" from Main menu
# Checking Portfolio Menu and submenu
And I choose "Pages and collections" in "Portfolio"
And I choose "Shared by me" in "Portfolio"
And I choose "Shared with me" in "Portfolio"
And I choose "Export" in "Portfolio"
And I choose "Import" in "Portfolio"
And I choose "Pages and collections" in "Portfolio" from Main menu
And I choose "Shared by me" in "Portfolio" from Main menu
And I choose "Shared with me" in "Portfolio" from Main menu
And I choose "Export" in "Portfolio" from Main menu
And I choose "Import" in "Portfolio" from Main menu
# Checking Groups Menus and submenu
And I choose "Find groups" in "Groups"
And I choose "My friends" in "Groups"
And I choose "Find friends" in "Groups"
And I choose "Institution membership" in "Groups"
And I choose "Topics" in "Groups"
And I choose "Find groups" in "Groups" from Main menu
And I choose "My friends" in "Groups" from Main menu
And I choose "Find friends" in "Groups" from Main menu
And I choose "Institution membership" in "Groups" from Main menu
And I choose "Topics" in "Groups" from Main menu
# Checking messages
And I click on "Show User Menu"
And I follow "mail"
And I follow "Inbox"
And I follow "Inbox" in the ".arrow-bar" "css_element"
And I follow "Sent"
And I follow "Compose"
# Checking Homepage
And I click on "Show Menu"
And I follow "Dashboard"
# Checking Administration
And I follow "Administration"
# Checking Admin home Menu and submenu
And I choose "Register" in "Admin home"
And I choose "Site statistics" in "Admin home"
And I choose "Register" in "Admin home" from Admin menu
And I choose "Site statistics" in "Admin home" from Admin menu
And I follow "Logins"
And I choose "Overview" in "Admin home"
And I choose "Overview" in "Admin home" from Admin menu
# Checking Configure site Menu and submenu
And I choose "Site options" in "Configure site"
And I choose "Static pages" in "Configure site"
And I choose "Menus" in "Configure site"
And I choose "Networking" in "Configure site"
And I choose "Licenses" in "Configure site"
And I choose "Pages and collections" in "Configure site"
And I choose "Share" in "Configure site"
And I choose "Files" in "Configure site"
And I choose "Cookie Consent" in "Configure site"
And I choose "Site options" in "Configure site" from Admin menu
And I choose "Static pages" in "Configure site" from Admin menu
And I choose "Menus" in "Configure site" from Admin menu
And I choose "Networking" in "Configure site" from Admin menu
And I choose "Licenses" in "Configure site" from Admin menu
And I choose "Pages and collections" in "Configure site" from Admin menu
And I choose "Share" in "Configure site" from Admin menu
And I choose "Files" in "Configure site" from Admin menu
And I choose "Cookie Consent" in "Configure site" from Admin menu
# Checking Users Menu and submenu
And I choose "User search" in "Users"
And I choose "Suspended and expired users" in "Users"
And I choose "Site staff" in "Users"
And I choose "Site administrators" in "Users"
And I choose "Export queue" in "Users"
And I choose "Add user" in "Users"
And I choose "Add users by CSV" in "Users"
And I choose "User search" in "Users" from Admin menu
And I choose "Suspended and expired users" in "Users" from Admin menu
And I choose "Site staff" in "Users" from Admin menu
And I choose "Site administrators" in "Users" from Admin menu
And I choose "Export queue" in "Users" from Admin menu
And I choose "Add user" in "Users" from Admin menu
And I choose "Add users by CSV" in "Users" from Admin menu
# Checking Groups
And I choose "Group categories" in "Groups (Administer groups)"
And I choose "Archived submissions" in "Groups (Administer groups)"
And I choose "Add groups by CSV" in "Groups (Administer groups)"
And I choose "Update group members by CSV" in "Groups (Administer groups)"
And I choose "Administer groups" in "Groups (Administer groups)"
And I choose "Group categories" in "Groups" from Admin menu
And I choose "Archived submissions" in "Groups" from Admin menu
And I choose "Add groups by CSV" in "Groups" from Admin menu
And I choose "Update group members by CSV" in "Groups" from Admin menu
And I choose "Administer groups" in "Groups" from Admin menu
# Checking Institutions Menu and submenus
And I choose "Static pages" in "Institutions"
And I choose "Members" in "Institutions"
And I choose "Staff" in "Institutions"
And I choose "Administrators" in "Institutions"
And I choose "Admin notifications" in "Institutions"
And I choose "Profile completion" in "Institutions"
And I choose "Pages and collections" in "Institutions"
And I choose "Share" in "Institutions"
And I choose "Files" in "Institutions"
And I choose "Statistics" in "Institutions"
And I choose "Pending registrations" in "Institutions"
And I choose "Static pages" in "Institutions" from Admin menu
And I choose "Members" in "Institutions" from Admin menu
And I choose "Staff" in "Institutions" from Admin menu
And I choose "Administrators" in "Institutions" from Admin menu
And I choose "Admin notifications" in "Institutions" from Admin menu
And I choose "Profile completion" in "Institutions" from Admin menu
And I choose "Pages and collections" in "Institutions" from Admin menu
And I choose "Share" in "Institutions" from Admin menu
And I choose "Files" in "Institutions" from Admin menu
And I choose "Statistics" in "Institutions" from Admin menu
And I choose "Pending registrations" in "Institutions" from Admin menu
# Checking Extensions Menu and submenu
And I choose "Plugin administration" in "Extensions"
And I choose "HTML filters" in "Extensions"
And I choose "Allowed iframe sources" in "Extensions"
And I choose "Clean URLs" in "Extensions"
And I choose "Plugin administration" in "Extensions" from Admin menu
And I choose "HTML filters" in "Extensions" from Admin menu
And I choose "Allowed iframe sources" in "Extensions" from Admin menu
And I choose "Clean URLs" in "Extensions" from Admin menu
# Checking Web services Menu and submenu
And I choose "Configuration" in "Web services"
And I choose "OAuth" in "Web services"
And I choose "Logs" in "Web services"
And I choose "Test client" in "Web services"
And I choose "Application connections" in "Web services"
And I choose "Connection manager" in "Web services"
And I choose "Configuration" in "Web services" from Admin menu
And I choose "OAuth" in "Web services" from Admin menu
And I choose "Logs" in "Web services" from Admin menu
And I choose "Test client" in "Web services" from Admin menu
And I choose "Application connections" in "Web services" from Admin menu
And I choose "Connection manager" in "Web services" from Admin menu
# The test should be completed once if Return to site works successfully
And I follow "Return to site"
And I click on "Show Menu"
And I follow "Dashboard"
And I should see "Admin User"
\ No newline at end of file
......@@ -6,8 +6,7 @@ So I can send this data out
Scenario: Registered data that is sent (Bug 1447865)
Given I log in as "admin" with password "Kupuhipa1"
And I follow "Administration"
And I choose "Register" in "Admin home"
And I choose "Register" in "Admin home" from Admin menu
When I expand all fieldsets
And I wait "1" seconds
Then I should see "phpversion"
......
......@@ -6,8 +6,7 @@ I check that the plugins are active
Scenario: Checking that the Multirecipient notifications plugin is active (Bug 1497065)
Given I log in as "admin" with password "Kupuhipa1"
And I follow "Administration"
And I choose "Plugin administration" in "Extensions"
And I choose "Plugin administration" in "Extensions" from Admin menu
# Currently only tests for multirecipientnotifications plugin which
# should be active and not be able to be hidden
And I scroll to the base of id "module.multirecipientnotification"
......
......@@ -12,7 +12,6 @@ Scenario: Turning the switches on and off on the Site Options page (Bug 1431569)
And I expand all fieldsets
# Changing all the switches from their default settings
And I set the following fields to these values:
| Drop-down navigation | 1 |
| Show homepage / dashboard information | 0 |
| Send weekly updates? | 1 |
| Users can choose page themes | 1 |
......@@ -51,4 +50,3 @@ Scenario: Turning the switches on and off on the Site Options page (Bug 1431569)
| Custom licenses | 1 |
| Mobile uploads | 1 |
And I press "Update site options"
......@@ -6,9 +6,8 @@ I need to be able to switch switches back and forth
Scenario: Turning switchboxes on and off in diff areas (Bug 1431569)
Given I log in as "admin" with password "Kupuhipa1"
And I follow "Administration"
# In the adding users area
When I choose "Add user" in "Users"
When I choose "Add user" in "Users" from Admin menu
And I press "General account options"
# Changing the switches to their opposite setting
And I set the following fields to these values:
......@@ -26,7 +25,7 @@ Scenario: Turning switchboxes on and off in diff areas (Bug 1431569)
| password | mahara1 |
And I press "Create user"
# In the Admin block adding users by CSV area
And I choose "Add users by CSV" in "Users"
And I choose "Add users by CSV" in "Users" from Admin menu
And I follow "General account options"
# Changing the switches to the opposite setting
And I set the following fields to these values:
......@@ -40,7 +39,7 @@ Scenario: Turning switchboxes on and off in diff areas (Bug 1431569)
And I disable the switch "Email users about their account"
And I press "Add users by CSV"
# Navigating to the account index
And I follow "Logout"
And I log out
Then I log in as "bob01" with password "Mahara1"
And I go to "account/index.php"
And I should not see "Undefined index:"
......
......@@ -6,13 +6,13 @@ I need to be able to access mathslate in Tinymce
Scenario: Making adjustments to the mathslate plugin for mahara (Bug 1472446)
Given I log in as "admin" with password "Kupuhipa1"
And I follow "Administration"
And I click on "Show Administration Menu"
And I follow "Configure site"
And I follow "General settings"
And I enable the switch "Enable MathJax"
And I press "Update site options"
And I should see "Site options have been updated."
And I choose "Pages and collections" in "Configure site"
And I choose "Pages and collections" in "Configure site" from Admin menu
And I follow "Add"
And I click on "Page" in the dialog
And I set the following fields to these values:
......@@ -21,11 +21,12 @@ Scenario: Making adjustments to the mathslate plugin for mahara (Bug 1472446)
And I press "Save"
And I should see "Page saved successfully"
And I wait "1" seconds
And I choose "Pages and collections" in "Configure site"
And I choose "Pages and collections" in "Configure site" from Admin menu
And I follow "test"
# Tinymce field adding a math equation
And I fill in "\\[\\alpha A\\beta B\\]" in editor "Message"
And I press "Comment"
And I wait "1" seconds
And I choose "Pages and collections" in "Configure site" from Admin menu
And I follow "test"
And I should see "αAβB"
And I should see "Comment submitted"
......@@ -11,8 +11,7 @@ Background:
Scenario: Testing functions for user search page (Bug 1431569)
Given I log in as "admin" with password "Kupuhipa1"
And I follow "Administration"
And I choose "User search" in "Users"
And I choose "User search" in "Users" from Admin menu
And I follow "Advanced options"
And I follow "P" in the "div#firstnamelist" "css_element"
And I follow "userA"
......
......@@ -12,11 +12,10 @@ Given the following "users" exist:
Scenario: Turning master switch on
Given I log in as "admin" with password "Kupuhipa1"
And I follow "Administration"
And I choose "Configuration" in "Web services"
And I choose "Configuration" in "Web services" from Admin menu
# Turning the master switch on
And I enable the switch "Accept incoming web service requests:"
When I go to "/webservice/testclient.php"
And I choose "Test client" in "Web services" from Admin menu
And I should not see "The web service authentication plugin is disabled"
And I log out
# Logging in as student to try turn switch on
......
......@@ -6,8 +6,7 @@ So I can benefit from the mahara/moodle cross over.
Scenario: Testing web service admin page on/off switches, and checking test client page is accessible (Bug 1431540)
Given I log in as "admin" with password "Kupuhipa1"
And I follow "Administration"
And I choose "Configuration" in "Web services"
And I choose "Configuration" in "Web services" from Admin menu
# Toggle Web service requester master switch
And I disable the switch "Allow outgoing web service requests:"
And I enable the switch "Allow outgoing web service requests:"
......@@ -21,13 +20,12 @@ Scenario: Testing web service admin page on/off switches, and checking test clie
# Turning a protocol on
And I enable the switch "SOAP:"
# Navigating to the test client page to see it's accessible
When I go to "webservice/testclient.php"
And I choose "Test client" in "Web services" from Admin menu
Then I should see "This is the interactive test client facility for web services."
And I should not see "Select elements should have at least one option"
And I should not see "The web service authentication plugin is disabled."
# Unchecking a protocol and going to test client page to check it gives warning message
And I am on homepage
And I follow "Administration"
And I go to "webservice/admin/index.php"
# Turning protocol off
And I disable the switch "SOAP:"
......
......@@ -10,7 +10,7 @@ Feature: Mahara users can create their blogs
Scenario: Create blogs
Given I log in as "userA" with password "Kupuhipa1"
When I follow "Settings"
And I choose "Settings" in "Setting" from User menu
And I fill in the following:
| tagssideblockmaxtags | 10 |
And I enable the switch "Multiple journals"
......@@ -33,7 +33,7 @@ Feature: Mahara users can create their blogs
And I scroll to the base of id "editpost_tags_container"
And I fill in select2 input "editpost_tags" with "blogentry" and select "blogentry"
And I press "Save entry"
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 click on "Page" in the dialog
And I press "Save"
......
......@@ -13,9 +13,8 @@ Given the following "institutions" exist:
Scenario: Clicking on the journal sub menu headings and adding first journal (Bug 1472467)
# log in as admin
Given I log in as "admin" with password "Kupuhipa1"
And I follow "Administration"
# Make sure more than one site journal can be created
When I choose "Journals" in "Configure site"
When I choose "Journals" in "Configure site" from Admin menu
And I follow "Create journal"
And I should see "New site journal:"
And I set the following fields to these values:
......@@ -31,7 +30,7 @@ Scenario: Clicking on the journal sub menu headings and adding first journal (Bu
Then I should see "Site journal 2"
# Make sure more than one institution journal can be created
When I choose "Journals" in "Institutions"
When I choose "Journals" in "Institutions" from Admin menu
And I follow "Create journal"
And I should see "New \"Institution One\" journal:"
And I set the following fields to these values:
......@@ -84,9 +83,8 @@ Scenario: Clicking on the journal sub menu headings and adding first journal (Bu
Scenario: Newly created user can get a copy of the journal (Bug 1472467)
Given I log in as "admin" with password "Kupuhipa1"
And I follow "Administration"
# Creating a site wide journal
And I choose "Journals" in "Configure site"
And I choose "Journals" in "Configure site" from Admin menu
And I follow "Create journal"
And I set the following fields to these values:
| Title * | Site journal 1 |
......@@ -100,7 +98,7 @@ Scenario: Newly created user can get a copy of the journal (Bug 1472467)
And I should see "Journal entry saved"
And I should see "Spongebob"
# Creating a site page
And I choose "Pages and collections" in "Configure site"
And I choose "Pages and collections" in "Configure site" from Admin menu
And I follow "Add"
And I click on "Page" in the dialog
And I set the following fields to these values:
......@@ -127,7 +125,7 @@ Scenario: Newly created user can get a copy of the journal (Bug 1472467)
| Copy for new user | 1 |
And I press "Save"
# Needs to add new user now to see if they get copy of page
And I choose "Add user" in "Users"
And I choose "Add user" in "Users" from Admin menu
And I set the following fields to these values:
| First name * | Pete |
| Last name * | Mc |
......@@ -139,10 +137,12 @@ Scenario: Newly created user can get a copy of the journal (Bug 1472467)
And I follow "Log in as this user"
And I follow "log in anyway"
# Checking I can see the page ...
And I click on "Show Menu"
And I follow "Portfolio"
Then I should see "Square pants"
# ... and the journal
And I click on "Show Menu"
When I follow "Content"
And I choose "Journals" in "Content"
And I choose "Journals" in "Content" from Main menu
And I follow "Copy of Site journal 1"
Then I should see "Spongebob"
......@@ -16,7 +16,7 @@ Feature: Mahara users can allow their tagged blogs tags to be copied
Scenario: Create blogs
Given I log in as "userA" with password "Kupuhipa1"
# Create tagged blog entries
When I choose "Journals" in "Content"
When I choose "Journals" in "Content" from Main menu
And I follow "New entry"
And I set the following fields to these values:
| Title | Entry one |
......@@ -37,7 +37,7 @@ Feature: Mahara users can allow their tagged blogs tags to be copied
And I press "Save entry"
# Add a taggedblogs block to a page
And I choose "Pages and collections" in "Portfolio"
And I choose "Pages and collections" in "Portfolio" from Main menu
And I click on "Page 01" panel menu
And I click on "Edit" in "Page 01" panel menu
And I expand "Journals" node in the "div#content-editor-foldable" "css_element"
......@@ -69,7 +69,7 @@ Feature: Mahara users can allow their tagged blogs tags to be copied
# Copy the page as another user
And I log out
Given I log in as "userB" with password "Kupuhipa1"
And I choose "Journals" in "Content"
And I choose "Journals" in "Content" from Main menu
And I follow "New entry"
And I set the following fields to these values:
| Title | userB entry |
......
......@@ -17,7 +17,7 @@ Background:
Scenario: Creating a Journal, publishing a draft, using tagged entry block
# Create draft entry
Given I log in as "userA" with password "Kupuhipa1"
When I choose "Journals" in "Content"
When I choose "Journals" in "Content" from Main menu
And I follow "New entry"
And I set the following fields to these values:
| Title * | My diary entry one |
......@@ -55,6 +55,7 @@ Scenario: Creating a Journal, publishing a draft, using tagged entry block
And I should not see "mildred"
# Display tagged journals in block
And I click on "Show Menu"
When I follow "Portfolio"
And I click on "Journal page" panel menu
And I click on "Edit" in "Journal page" panel menu
......@@ -71,7 +72,7 @@ Scenario: Creating a Journal, publishing a draft, using tagged entry block
And I follow "Share page"
And I select "Public" from "accesslist[0][searchtype]"
And I press "Save"
And I follow "Logout"
And I log out
And I log in as "userB" with password "Kupuhipa1"
And I go to portfolio page "Journal page"
Then I should see "My diary entry two"
......
......@@ -13,7 +13,7 @@ Given the following "users" exist:
Scenario: Creating a journal and editing it (Bug 1513716)
Given I log in as "userA" with password "Kupuhipa1"
# Creating a journal
And I choose "Journals" in "Content"
And I choose "Journals" in "Content" from Main menu
And I should see "Journals"
When I click on "New entry"
And I set the following fields to these values:
......
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