Commit 89940fc7 authored by Robert Lyon's avatar Robert Lyon

Changing the two steps click on menu / follow link

To be just one I choose "item" in _which_ menu

This is to work similar to how we get submenu items

I've left the random clicking/checking menu items behat tests to do it
the old way as it is important there to do the actual clicking steps

Change-Id: Id0ba5476d81b7f3b083decb573a0c255cae69805
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 72d91d24
......@@ -37,15 +37,23 @@ class BehatNavigation extends BehatBase {
*
* @throws ExpectationException if node not found.
* @param string $menuitemtext the title of menu item e.g. "Dashboard", "Content".
* @param string $menu the type of menu to look in e.g. "admin", "user".
* @param string $byid find the menu item based on an id e.g. "mail" for "? unread" messages link to inbox
* @return NodeElement
*/
protected function get_main_menu_item_node($menuitemtext) {
protected function get_main_menu_item_node($menuitemtext, $menu, $byid = false) {
// Avoid problems with quotes.
$nodetextliteral = $this->escaper->escapeLiteral($menuitemtext);
$exception = new ExpectationException('The menu item "' . $menuitemtext . ' not found or invisible in "', $this->getSession());
$xpath = "//nav[@id='main-nav']" .
"//a[normalize-space(.)=" . $nodetextliteral ."]";
$exception = new ExpectationException('The menu item ' . ($byid ? 'with id ' : '') . '"' . $menuitemtext . '" not found or invisible in "' . $menu . '"', $this->getSession());
if ($byid) {
$xpath = "//nav[@id='" . $menu . "']" .
"//a[@id='" . $menuitemtext . "']";
}
else {
$xpath = "//nav[@id='" . $menu . "']" .
"//a[normalize-space(.)=" . $nodetextliteral ."]";
}
$node = $this->find('xpath', $xpath, $exception);
return $node;
......@@ -57,6 +65,7 @@ class BehatNavigation extends BehatBase {
* @throws ExpectationException if node not found or invisible.
* @param string $submenuitemtext the title of submenu item e.g. "Profile", "Pages".
* @param string $menuitemtext the title of menu item e.g. "Content", "Portfolio".
* @param string $menu the type of menu to look in e.g. "admin", "user".
* @return NodeElement
*/
protected function get_sub_menu_item_node($submenuitemtext, $menuitemtext, $menu) {
......@@ -64,7 +73,8 @@ class BehatNavigation extends BehatBase {
// Avoid problems with quotes.
$submenuitemtextliteral = $this->escaper->escapeLiteral($submenuitemtext);
$menuitemtextliteral = $this->escaper->escapeLiteral($menuitemtext);
$exception = new ExpectationException('The sub menu item "' . $menuitemtext . ' not found or invisible in "', $this->getSession());
$exception = new ExpectationException('The sub menu item "' . $menuitemtext . '" not found or invisible in "' . $menu . '"', $this->getSession());
$xpath = "//nav[@id='" . $menu . "']" .
"//li[contains(normalize-space(.), " . $menuitemtextliteral .")]" .
"//a[normalize-space(.)=" . $submenuitemtextliteral ."]";
......@@ -74,12 +84,45 @@ class BehatNavigation extends BehatBase {
}
/**
* Choose a main menu item
* Choose a main menu item from Main menu
*
* @Given /^I choose "(?P<menu_item>(?:[^"]|\\")*)" from main menu$/
*/
public function i_choose_menu_main($menuitem) {
$menuitemnode = $this->get_main_menu_item_node($menuitem, 'main-nav');
$path = $menuitemnode->getAttribute('href');
$this->visitPath($path);
}
/**
* Choose a main menu item from Admin menu
*
* @Given /^I choose "(?P<menu_item>(?:[^"]|\\")*)" from administration menu$/
*/
public function i_choose_menu_admin($menuitem) {
$menuitemnode = $this->get_main_menu_item_node($menuitem, 'main-nav-admin');
$path = $menuitemnode->getAttribute('href');
$this->visitPath($path);
}
/**
* Choose a main menu item from user menu
*
* @Given /^I choose "(?P<menu_item>(?:[^"]|\\")*)" from user menu$/
*/
public function i_choose_menu_user($menuitem) {
$menuitemnode = $this->get_main_menu_item_node($menuitem, 'main-nav-user');
$path = $menuitemnode->getAttribute('href');
$this->visitPath($path);
}
/**
* Choose a main menu item from user menu by id
*
* @Given /^I choose "(?P<menu_item>(?:[^"]|\\")*)"$/
* @Given /^I choose "(?P<menu_item>(?:[^"]|\\")*)" from user menu by id$/
*/
public function i_choose_menu($menuitem) {
$menuitemnode = $this->get_main_menu_item_node($menuitem);
public function i_choose_menu_user_by_id($menuitem) {
$menuitemnode = $this->get_main_menu_item_node($menuitem, 'main-nav-user', true);
$path = $menuitemnode->getAttribute('href');
$this->visitPath($path);
}
......@@ -87,7 +130,7 @@ class BehatNavigation extends BehatBase {
/**
* Choose a sub menu item in admnistration menu item
*
* @Given /^I choose "(?P<menu_item>(?:[^"]|\\")*)" in "(?P<mainmenu_item>(?:[^"]|\\")*)" from Admin menu$/
* @Given /^I choose "(?P<menu_item>(?:[^"]|\\")*)" in "(?P<mainmenu_item>(?:[^"]|\\")*)" from administration menu$/
*/
public function i_choose_submenu_admin($menuitem, $mainmenuitem) {
$menuitemnode = $this->get_sub_menu_item_node($menuitem, $mainmenuitem, 'main-nav-admin');
......@@ -98,7 +141,7 @@ class BehatNavigation extends BehatBase {
/**
* Choose a sub menu item in user menu item
*
* @Given /^I choose "(?P<menu_item>(?:[^"]|\\")*)" in "(?P<mainmenu_item>(?:[^"]|\\")*)" from User menu$/
* @Given /^I choose "(?P<menu_item>(?:[^"]|\\")*)" in "(?P<mainmenu_item>(?:[^"]|\\")*)" from user menu$/
*/
public function i_choose_submenu_user($menuitem, $mainmenuitem) {
$menuitemnode = $this->get_sub_menu_item_node($menuitem, $mainmenuitem, 'main-nav-user');
......@@ -109,7 +152,7 @@ class BehatNavigation extends BehatBase {
/**
* Choose a sub menu item in a main menu item
*
* @Given /^I choose "(?P<menu_item>(?:[^"]|\\")*)" in "(?P<mainmenu_item>(?:[^"]|\\")*)" from Main menu$/
* @Given /^I choose "(?P<menu_item>(?:[^"]|\\")*)" in "(?P<mainmenu_item>(?:[^"]|\\")*)" from main menu$/
*/
public function i_choose_submenu_main($menuitem, $mainmenuitem) {
$menuitemnode = $this->get_sub_menu_item_node($menuitem, $mainmenuitem, 'main-nav');
......
......@@ -10,7 +10,7 @@ Feature: Mahara users can change their account settings
Scenario: Change notifications
Given I log in as "userA" with password "Kupuhipa1"
And I choose "Notifications" in "Settings" from User menu
And I choose "Notifications" in "Settings" from user menu
And I select "Email" from "activity_viewaccess"
When I press "Save"
And I should see "Preferences saved"
......
......@@ -8,7 +8,7 @@ Scenario: Editing admin profile page (Bug: 1426983)
# Log in
Given I log in as "admin" with password "Kupuhipa1"
# Updating Profile
When I choose "Profile" in "Content" from Main menu
When I choose "Profile" in "Content" from main menu
And I fill in the following:
| First name | Test |
| Last name | Admin |
......@@ -41,11 +41,10 @@ Scenario: Editing admin profile page (Bug: 1426983)
| Your URL or username | https://twitter.com/MaharaProject |
And I press "Save"
# Verifying the settings held, navitgating to dashboard page to check
And I click on "Show Menu"
Then I follow "Dashboard"
And I choose "Dashboard" from main menu
And I should see "Test Admin"
# Resetting/Editing details
And I choose "Profile" in "Content" from Main menu
And I choose "Profile" in "Content" from main menu
And I follow "About me"
And I fill in the following:
| First name | Admin |
......@@ -72,15 +71,14 @@ Scenario: Editing admin profile page (Bug: 1426983)
And I press "Save profile"
And I should see "Profile saved successfully"
# Verifying changes has been made navigating to dashboard page to checked
And I click on "Show Menu"
Then I follow "Dashboard"
And I choose "Dashboard" from main menu
And I should see "Admin User"
Scenario: Editing admin profile picture (Bug: 1578000)
# Log in
Given I log in as "admin" with password "Kupuhipa1"
# Add new profile picture
When I choose "Profile pictures" in "Content" from Main menu
When I choose "Profile pictures" in "Content" from main menu
And I attach the file "Image2.png" to "Profile picture"
And I fill in the following:
| Image title | New avatar |
......
......@@ -11,7 +11,7 @@ Given the following "users" exist:
Scenario: Sending friend requests from student to admin (Bug 1440908)
Given I log in as "admin" with password "Kupuhipa1"
And I choose "User search" in "Users" from Admin menu
And I choose "User search" in "Users" from administration menu
And I follow "Pete"
And I follow "Log in as userA"
And I follow "Admin User"
......@@ -21,8 +21,7 @@ And I press "Request friendship"
And I follow "Become Admin User again"
And I am on homepage
# In my inbox block I'll see "New friend request"
And I click on "Show User Menu"
And I follow "Inbox:"
And I choose "mail" from user menu by id
And I expand the section "New friend request"
# Clicking on the notification title to expand it
And I follow "Requests"
......@@ -31,8 +30,7 @@ And I press "Approve request"
And I should see "Accepted friend request"
And I follow "Log in as userA"
# In userA's inbox block I'll see a "Friend request accepted" notification
And I click on "Show User Menu"
And I follow "Inbox:"
And I choose "mail" from user menu by id
And I expand the section "Friend request accepted"
# Expanding it shows me another "More..." link which takes me to the inbox
And I follow "More..."
......
......@@ -21,6 +21,6 @@ So people can have access to their Mahara
And I press "Register"
And I follow "Login"
And I log in as "admin" with password "Kupuhipa1"
And I choose "Pending registrations" in "Institutions" from Admin menu
And I choose "Pending registrations" in "Institutions" from administration menu
And I follow "Approve"
And I press "Approve"
......@@ -11,8 +11,7 @@ Background:
Scenario: Admin can't change password to anything on suckypasswords list (Bug #844457)
Given I log in as "admin" with password "Kupuhipa1"
And I click on "Show User Menu"
And I follow "Settings"
And I choose "Settings" from user menu
And I fill in "Current password" with "Kupuhipa1"
And I fill in "New password" with "abc123"
And I fill in "Confirm password" with "abc123"
......@@ -37,8 +36,7 @@ Scenario: Admin can't change password to anything on suckypasswords list (Bug #8
Scenario: Student can't change password to anything on suckypasswords list (Bug #844457)
Given I log in as "userA" with password "Kupuhipa1"
And I click on "Show User Menu"
And I follow "Settings"
And I choose "Settings" from user menu
And I fill in "Current password" with "Kupuhipa1"
And I fill in "New password" with "abc123"
And I fill in "Confirm password" with "abc123"
......
......@@ -17,7 +17,7 @@ Scenario: Creating an Institution assigning users and changing their passwords
| Institution name | Institution One |
And I press "Submit"
# Creating user 1
And I choose "Add user" in "Users" from Admin menu
And I choose "Add user" in "Users" from administration menu
And I fill in the following:
| firstname | bob |
| lastname | bobby |
......@@ -28,7 +28,7 @@ Scenario: Creating an Institution assigning users and changing their passwords
And I enable the switch "Institution administrator"
And I press "Create user"
# Creating user 2
And I choose "Add user" in "Users" from Admin menu
And I choose "Add user" in "Users" from administration menu
And I fill in the following:
| firstname | Jen |
| lastname | Jenny |
......@@ -48,7 +48,7 @@ Scenario: Creating an Institution assigning users and changing their passwords
# Verifying password was changed successfully
And I should see "Your new password has been saved"
# Changing password
And I choose "Settings" in "Settings" from User menu
And I choose "Settings" in "Settings" from user menu
And I fill in the following:
| Current password | mahara2 |
| New password | mahara3 |
......@@ -67,7 +67,7 @@ Scenario: Creating an Institution assigning users and changing their passwords
# Verifying password was changed
And I should see "Your new password has been saved"
# Changing password
And I choose "Settings" in "Settings" from User menu
And I choose "Settings" in "Settings" from user menu
And I fill in the following:
| Current password | mahara2 |
| New password | mahara3 |
......
......@@ -6,7 +6,7 @@ So I can benefit from the use of different configuration changes
Scenario: Turning switches on and off on the Add user page (Bug 1431569)
Given I log in as "admin" with password "Kupuhipa1"
And I choose "Add user" in "Users" from Admin menu
And I choose "Add user" in "Users" from administration menu
And I set the following fields to these values:
| Site staff | 1 |
| Site administrator | 1 |
......
......@@ -10,7 +10,7 @@ Scenario: Create users by csv (Bug 1426983)
# Verifying log in was successful
And I should see "Admin User"
# Adding Users by CVS
And I choose "Add users by CSV" in "Users" from Admin menu
And I choose "Add users by CSV" in "Users" from administration menu
And I attach the file "UserCSV.csv" to "CSV file"
And I disable the switch "Force password change"
And I disable the switch "Email users about their account"
......@@ -19,7 +19,7 @@ Scenario: Create users by csv (Bug 1426983)
And I should see "New users added: 4."
# Check that we can delete a user after upload (Bug #1558864)
And I choose "User search" in "Users" from Admin menu
And I choose "User search" in "Users" from administration menu
And I follow "kevin01"
And I follow "Suspend or delete this user"
And I scroll to the id "delete"
......
......@@ -6,7 +6,7 @@ I need to be able to turn switches on and off
Scenario: Turning swtitches on and off on Networking page (Bug 1431569)
Given I log in as "admin" with password "Kupuhipa1"
And I choose "Networking" in "Configure site" from Admin menu
And I choose "Networking" in "Configure site" from administration menu
And I set the following fields to these values:
| Enable networking | 1 |
| Auto-register all hosts | 1 |
......
......@@ -18,6 +18,5 @@ Scenario: Checking that admin user can view messages in their mail sent from Con
And I trigger cron
And I go to the homepage
And I log in as "admin" with password "Kupuhipa1"
And I click on "Show User Menu"
And I click on "mail"
And I choose "mail" from user menu by id
Then I should see "New contact us"
......@@ -6,7 +6,7 @@ I need to be able to enable it via a switch
Scenario: Turning the switches on and off on Cookie consent page (Bug 1431569)
Given I log in as "admin" with password "Kupuhipa1"
And I choose "Cookie Consent" in "Configure site" from Admin menu
And I choose "Cookie Consent" in "Configure site" from administration menu
And I set the following fields to these values:
| Enable Cookie Consent | 1 |
And I press "Save changes"
......
......@@ -10,7 +10,7 @@ Scenario: Creating and deleting external links (Selenium 1426983)
# Verifying log in as successful
And I should see "Admin User"
# Entering an external link
And I choose "Menus" in "Configure site" from Admin menu
And I choose "Menus" in "Configure site" from administration menu
And I select "Logged-in links and resources" from "Edit:"
And I fill in "namenew" with "Test Menu Link"
And I fill in "linkedtonew" with "https://mahara.org/"
......@@ -19,10 +19,9 @@ Scenario: Creating and deleting external links (Selenium 1426983)
And I should see "Item saved"
And I press "Save changes"
# Verifying the link as been added successfully
And I click on "Show Menu"
And I follow "Dashboard"
And I choose "Dashboard" from main menu
Then I should see "Test Menu Link"
And I choose "Menus" in "Configure site" from Admin menu
And I choose "Menus" in "Configure site" from administration menu
And I select "Logged-in links and resources" from "Edit:"
#And I wait until the page is ready
#And I press "Delete"
......@@ -50,17 +49,17 @@ Scenario: Make sure blogs do not show in site file link options (Bug #1537426)
Given I log in as "admin" with password "Kupuhipa1"
# I create a site journal
And I choose "Journals" in "Configure site" from Admin menu
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 Admin menu
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 Admin menu
And I choose "Menus" in "Configure site" from administration menu
And I select "Logged-in links and resources" from "Edit:"
And I set the following fields to these values:
| Site file | 1 |
......
......@@ -17,9 +17,9 @@ Scenario: Enable/disable external resources in mahara pages
# By default external resources are allowed in a page
When I log in as "userA" with password "Kupuhipa1"
# Upload an image
And I choose "Files" in "Content" from Main menu
And I choose "Files" in "Content" from main menu
And I attach the file "Image2.png" to "files_filebrowser_userfile"
And I choose "Pages and collections" in "Portfolio" from Main menu
And I choose "Pages and collections" in "Portfolio" from main menu
And I follow "Page 1"
And I follow "Edit this page"
......@@ -49,13 +49,13 @@ Scenario: Enable/disable external resources in mahara pages
# Disable external resources and check if external images are displayed in pages
When I log in as "admin" with password "Kupuhipa1"
And I choose "Site options" in "Configure site" from Admin menu
And I choose "Site options" in "Configure site" from administration menu
And I expand the section "Security settings"
And I enable the switch "Disable external resources in user HTML"
And I press "Update site options"
And I log out
And I log in as "userA" with password "Kupuhipa1"
And I choose "Pages and collections" in "Portfolio" from Main menu
And I choose "Pages and collections" in "Portfolio" from main menu
And I follow "Page 1"
Then I should see images in the block "Text block with an internal image"
And I should not see images in the block "Text block with an external image"
......@@ -13,8 +13,7 @@ I can create a new page from the site default portfolio page
Scenario: Add a text block into the site default portfolio page and create a new portfolio page (Bug 1488255)
Given I log in as "admin" with password "Kupuhipa1"
And I click on "Show Administration Menu"
And I choose "Pages and collections" in "Configure site" from Admin menu
And I choose "Pages and collections" in "Configure site" from administration menu
And I should see "Page template"
And I click on "Page template" panel menu
And I click on "Edit" in "Page template" panel menu
......@@ -33,8 +32,7 @@ I can create a new page from the site default portfolio page
And I should see "Login"
# Create a new portfolio page
And I log in as "userA" with password "Kupuhipa1"
And I click on "Show Menu"
And I choose "Portfolio"
And I choose "Portfolio" from main menu
And I should see "Pages and collections"
And I follow "Add"
And I click on "Page" in the dialog
......
......@@ -6,7 +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 choose "Group categories" in "Groups" from Admin menu
And I choose "Group categories" in "Groups" from administration 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 choose "My groups" in "Groups" from Main menu
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,7 +15,7 @@ Scenario:Injecting sql in groups search field
| Hide group | Off |
And I press "Save group"
And I should see "Group saved successfully"
And I choose "Administer groups" in "Groups" from Admin menu
And I choose "Administer groups" in "Groups" from administration menu
When I set the following fields to these values:
| search_query | <script>alert(1);</script> |
And I press "search_submit"
......
......@@ -18,7 +18,7 @@ Background:
Scenario: Viewing user statistics
Given I log in as "admin" with password "Kupuhipa1"
# Users without an institution
When I choose "Statistics" in "Institutions" from Admin menu
When I choose "Statistics" in "Institutions" from administration menu
Then I should see "Institution statistics for 'Institution One'"
And I should see "Users 1"
# Users with an institution
......
......@@ -50,7 +50,7 @@ Scenario: Confirm that multiple notification choices are available (Bug #1299993
# Verifying log in was successful
And I should see "Bob Bobby"
# Navigating to notification settings
And I choose "Notifications" in "Settings" from User menu
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,7 +6,7 @@
Scenario: Admin logs in and checks notification settings (Bug 1388682)
Given I log in as "admin" with password "Kupuhipa1"
And I choose "Site options" in "Configure site" from Admin menu
And I choose "Site options" in "Configure site" from administration menu
And I click on "Notification settings"
Then I should see "Contact us"
And I should see "Comment"
......
......@@ -18,34 +18,34 @@ 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" from Main menu
And I choose "Profile pictures" in "Content" from main menu
# Checking Files Submenu
And I choose "Files" in "Content" from Main menu
And I choose "Files" in "Content" from main menu
# Checking Journal submenu
And I choose "Journals" in "Content" from Main menu
And I choose "Journals" in "Content" from main menu
# Checking Resume submenu and tabs
And I choose "Résumé" in "Content" from Main menu
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" from Main menu
And I choose "Plans" in "Content" from main menu
# Checking Notes submenu
And I choose "Notes" in "Content" from Main menu
And I choose "Notes" in "Content" from main menu
# Checking Portfolio Menu and submenu
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
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" 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
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"
......@@ -57,58 +57,58 @@ Scenario: Clicking randomly around Mahara (Bug: 1426983)
And I follow "Dashboard"
# Checking Administration
# Checking Admin home Menu and submenu
And I choose "Register" in "Admin home" from Admin menu
And I choose "Site statistics" in "Admin home" from Admin menu
And I choose "Register" in "Admin home" from administration menu
And I choose "Site statistics" in "Admin home" from administration menu
And I follow "Logins"
And I choose "Overview" in "Admin home" from Admin menu
And I choose "Overview" in "Admin home" from administration menu
# Checking Configure site Menu and submenu
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
And I choose "Site options" in "Configure site" from administration menu
And I choose "Static pages" in "Configure site" from administration menu
And I choose "Menus" in "Configure site" from administration menu
And I choose "Networking" in "Configure site" from administration menu
And I choose "Licenses" in "Configure site" from administration menu
And I choose "Pages and collections" in "Configure site" from administration menu
And I choose "Share" in "Configure site" from administration menu
And I choose "Files" in "Configure site" from administration menu
And I choose "Cookie Consent" in "Configure site" from administration menu
# Checking Users Menu and submenu
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
And I choose "User search" in "Users" from administration menu
And I choose "Suspended and expired users" in "Users" from administration menu
And I choose "Site staff" in "Users" from administration menu
And I choose "Site administrators" in "Users" from administration menu
And I choose "Export queue" in "Users" from administration menu
And I choose "Add user" in "Users" from administration menu
And I choose "Add users by CSV" in "Users" from administration menu
# Checking 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
And I choose "Group categories" in "Groups" from administration menu
And I choose "Archived submissions" in "Groups" from administration menu
And I choose "Add groups by CSV" in "Groups" from administration menu
And I choose "Update group members by CSV" in "Groups" from administration menu
And I choose "Administer groups" in "Groups" from administration menu
# Checking Institutions Menu and submenus
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
And I choose "Static pages" in "Institutions" from administration menu
And I choose "Members" in "Institutions" from administration menu
And I choose "Staff" in "Institutions" from administration menu
And I choose "Administrators" in "Institutions" from administration menu
And I choose "Admin notifications" in "Institutions" from administration menu
And I choose "Profile completion" in "Institutions" from administration menu
And I choose "Pages and collections" in "Institutions" from administration menu
And I choose "Share" in "Institutions" from administration menu
And I choose "Files" in "Institutions" from administration menu
And I choose "Statistics" in "Institutions" from administration menu
And I choose "Pending registrations" in "Institutions" from administration menu
# Checking Extensions Menu and submenu
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
And I choose "Plugin administration" in "Extensions" from administration menu
And I choose "HTML filters" in "Extensions" from administration menu
And I choose "Allowed iframe sources" in "Extensions" from administration menu
And I choose "Clean URLs" in "Extensions" from administration menu
# Checking Web services Menu and submenu
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
And I choose "Configuration" in "Web services" from administration menu
And I choose "OAuth" in "Web services" from administration menu
And I choose "Logs" in "Web services" from administration menu
And I choose "Test client" in "Web services" from administration menu
And I choose "Application connections" in "Web services" from administration menu
And I choose "Connection manager" in "Web services" from administration menu
# The test should be completed once if Return to site works successfully
And I click on "Show Menu"
And I follow "Dashboard"
......
......@@ -6,7 +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 choose "Register" in "Admin home" from Admin menu
And I choose "Register" in "Admin home" from administration menu