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
...@@ -83,8 +83,8 @@ $string['tab'] = 'tab'; ...@@ -83,8 +83,8 @@ $string['tab'] = 'tab';
$string['selected'] = 'selected'; $string['selected'] = 'selected';
$string['admin'] = 'Admin'; $string['admin'] = 'Admin';
$string['menu'] = 'Menu'; $string['menu'] = 'Menu';
$string['adminmenu'] = 'Administration menu'; $string['adminmenu'] = 'Administration Menu';
$string['usermenu'] = 'User menu'; $string['usermenu'] = 'User Menu';
$string['at'] = 'at'; $string['at'] = 'at';
$string['From'] = 'From'; $string['From'] = 'From';
......
...@@ -2976,18 +2976,18 @@ function main_nav($type = null) { ...@@ -2976,18 +2976,18 @@ function main_nav($type = null) {
$menu = admin_nav(); $menu = admin_nav();
} }
} }
else if ($USER->is_institutional_admin()) {
$menutype = 'instadmin_nav';
if (!($cachemenu = get_config_institution($institution, $menutype . '_' . $language))) {
$menu = institutional_admin_nav();
}
}
else if ($USER->get('staff')) { else if ($USER->get('staff')) {
$menutype = 'staff_nav'; $menutype = 'staff_nav';
if (!($cachemenu = get_config_institution($institution, $menutype . '_' . $language))) { if (!($cachemenu = get_config_institution($institution, $menutype . '_' . $language))) {
$menu = staff_nav(); $menu = staff_nav();
} }
} }
else if ($USER->is_institutional_admin()) {
$menutype = 'instadmin_nav';
if (!($cachemenu = get_config_institution($institution, $menutype . '_' . $language))) {
$menu = institutional_admin_nav();
}
}
else { else {
$menutype = 'inststaff_nav'; $menutype = 'inststaff_nav';
if (!($cachemenu = get_config_institution($institution, $menutype . '_' . $language))) { if (!($cachemenu = get_config_institution($institution, $menutype . '_' . $language))) {
......
...@@ -60,6 +60,7 @@ class BehatGeneral extends BehatBase { ...@@ -60,6 +60,7 @@ class BehatGeneral extends BehatBase {
public function i_logout() { public function i_logout() {
$this->visitPath("/"); $this->visitPath("/");
$this->wait_until_the_page_is_ready(); $this->wait_until_the_page_is_ready();
$this->i_click_on("Show User Menu");
$this->i_follow_in_the("Logout", "//header//li[contains(concat(' ', normalize-space(@class), ' '), ' btn-logout ')]", "xpath_element"); $this->i_follow_in_the("Logout", "//header//li[contains(concat(' ', normalize-space(@class), ' '), ' btn-logout ')]", "xpath_element");
} }
......
...@@ -59,13 +59,13 @@ class BehatNavigation extends BehatBase { ...@@ -59,13 +59,13 @@ class BehatNavigation extends BehatBase {
* @param string $menuitemtext the title of menu item e.g. "Content", "Portfolio". * @param string $menuitemtext the title of menu item e.g. "Content", "Portfolio".
* @return NodeElement * @return NodeElement
*/ */
protected function get_sub_menu_item_node($submenuitemtext, $menuitemtext) { protected function get_sub_menu_item_node($submenuitemtext, $menuitemtext, $menu) {
// Avoid problems with quotes. // Avoid problems with quotes.
$submenuitemtextliteral = $this->escaper->escapeLiteral($submenuitemtext); $submenuitemtextliteral = $this->escaper->escapeLiteral($submenuitemtext);
$menuitemtextliteral = $this->escaper->escapeLiteral($menuitemtext); $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 "', $this->getSession());
$xpath = "//nav[@id='main-nav']" . $xpath = "//nav[@id='" . $menu . "']" .
"//li[contains(normalize-space(.), " . $menuitemtextliteral .")]" . "//li[contains(normalize-space(.), " . $menuitemtextliteral .")]" .
"//a[normalize-space(.)=" . $submenuitemtextliteral ."]"; "//a[normalize-space(.)=" . $submenuitemtextliteral ."]";
$node = $this->find('xpath', $xpath, $exception); $node = $this->find('xpath', $xpath, $exception);
...@@ -84,13 +84,35 @@ class BehatNavigation extends BehatBase { ...@@ -84,13 +84,35 @@ class BehatNavigation extends BehatBase {
$this->visitPath($path); $this->visitPath($path);
} }
/**
* Choose a sub menu item in admnistration menu item
*
* @Given /^I choose "(?P<menu_item>(?:[^"]|\\")*)" in "(?P<mainmenu_item>(?:[^"]|\\")*)" from Admin menu$/
*/
public function i_choose_submenu_admin($menuitem, $mainmenuitem) {
$menuitemnode = $this->get_sub_menu_item_node($menuitem, $mainmenuitem, 'main-nav-admin');
$path = $menuitemnode->getAttribute('href');
$this->visitPath($path);
}
/**
* Choose a sub menu item in user menu item
*
* @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');
$path = $menuitemnode->getAttribute('href');
$this->visitPath($path);
}
/** /**
* Choose a sub menu item in a main menu item * Choose a sub menu item in a main menu item
* *
* @Given /^I choose "(?P<menu_item>(?:[^"]|\\")*)" in "(?P<mainmenu_item>(?:[^"]|\\")*)"$/ * @Given /^I choose "(?P<menu_item>(?:[^"]|\\")*)" in "(?P<mainmenu_item>(?:[^"]|\\")*)" from Main menu$/
*/ */
public function i_choose_submenu($menuitem, $mainmenuitem) { public function i_choose_submenu_main($menuitem, $mainmenuitem) {
$menuitemnode = $this->get_sub_menu_item_node($menuitem, $mainmenuitem); $menuitemnode = $this->get_sub_menu_item_node($menuitem, $mainmenuitem, 'main-nav');
$path = $menuitemnode->getAttribute('href'); $path = $menuitemnode->getAttribute('href');
$this->visitPath($path); $this->visitPath($path);
} }
......
...@@ -10,8 +10,7 @@ Feature: Mahara users can change their account settings ...@@ -10,8 +10,7 @@ Feature: Mahara users can change their account settings
Scenario: Change notifications Scenario: Change notifications
Given I log in as "userA" with password "Kupuhipa1" Given I log in as "userA" with password "Kupuhipa1"
And I follow "Settings" And I choose "Notifications" in "Settings" from User menu
And I follow "Notifications"
And I select "Email" from "activity_viewaccess" And I select "Email" from "activity_viewaccess"
When I press "Save" When I press "Save"
And I should see "Preferences saved" And I should see "Preferences saved"
......
...@@ -8,7 +8,7 @@ Scenario: Editing admin profile page (Bug: 1426983) ...@@ -8,7 +8,7 @@ Scenario: Editing admin profile page (Bug: 1426983)
# Log in # Log in
Given I log in as "admin" with password "Kupuhipa1" Given I log in as "admin" with password "Kupuhipa1"
# Updating Profile # Updating Profile
When I follow "Content" When I choose "Profile" in "Content" from Main menu
And I fill in the following: And I fill in the following:
| First name | Test | | First name | Test |
| Last name | Admin | | Last name | Admin |
...@@ -41,10 +41,11 @@ Scenario: Editing admin profile page (Bug: 1426983) ...@@ -41,10 +41,11 @@ Scenario: Editing admin profile page (Bug: 1426983)
| Your URL or username | https://twitter.com/MaharaProject | | Your URL or username | https://twitter.com/MaharaProject |
And I press "Save" And I press "Save"
# Verifying the settings held, navitgating to dashboard page to check # Verifying the settings held, navitgating to dashboard page to check
And I click on "Show Menu"
Then I follow "Dashboard" Then I follow "Dashboard"
And I should see "Test Admin" And I should see "Test Admin"
# Resetting/Editing details # Resetting/Editing details
And I follow "Content" And I choose "Profile" in "Content" from Main menu
And I follow "About me" And I follow "About me"
And I fill in the following: And I fill in the following:
| First name | Admin | | First name | Admin |
...@@ -71,6 +72,7 @@ Scenario: Editing admin profile page (Bug: 1426983) ...@@ -71,6 +72,7 @@ Scenario: Editing admin profile page (Bug: 1426983)
And I press "Save profile" And I press "Save profile"
And I should see "Profile saved successfully" And I should see "Profile saved successfully"
# Verifying changes has been made navigating to dashboard page to checked # Verifying changes has been made navigating to dashboard page to checked
And I click on "Show Menu"
Then I follow "Dashboard" Then I follow "Dashboard"
And I should see "Admin User" And I should see "Admin User"
...@@ -78,7 +80,7 @@ Scenario: Editing admin profile picture (Bug: 1578000) ...@@ -78,7 +80,7 @@ Scenario: Editing admin profile picture (Bug: 1578000)
# Log in # Log in
Given I log in as "admin" with password "Kupuhipa1" Given I log in as "admin" with password "Kupuhipa1"
# Add new profile picture # Add new profile picture
When I choose "Profile pictures" in "Content" When I choose "Profile pictures" in "Content" from Main menu
And I attach the file "Image2.png" to "Profile picture" And I attach the file "Image2.png" to "Profile picture"
And I fill in the following: And I fill in the following:
| Image title | New avatar | | Image title | New avatar |
......
...@@ -11,8 +11,7 @@ Given the following "users" exist: ...@@ -11,8 +11,7 @@ Given the following "users" exist:
Scenario: Sending friend requests from student to admin (Bug 1440908) Scenario: Sending friend requests from student to admin (Bug 1440908)
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 "User search" in "Users" from Admin menu
And I choose "User search" in "Users"
And I follow "Pete" And I follow "Pete"
And I follow "Log in as userA" And I follow "Log in as userA"
And I follow "Admin User" And I follow "Admin User"
...@@ -22,6 +21,7 @@ And I press "Request friendship" ...@@ -22,6 +21,7 @@ And I press "Request friendship"
And I follow "Become Admin User again" And I follow "Become Admin User again"
And I am on homepage And I am on homepage
# In my inbox block I'll see "New friend request" # In my inbox block I'll see "New friend request"
And I click on "Show User Menu"
And I follow "Inbox:" And I follow "Inbox:"
And I expand the section "New friend request" And I expand the section "New friend request"
# Clicking on the notification title to expand it # Clicking on the notification title to expand it
...@@ -31,6 +31,7 @@ And I press "Approve request" ...@@ -31,6 +31,7 @@ And I press "Approve request"
And I should see "Accepted friend request" And I should see "Accepted friend request"
And I follow "Log in as userA" And I follow "Log in as userA"
# In userA's inbox block I'll see a "Friend request accepted" notification # 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 follow "Inbox:"
And I expand the section "Friend request accepted" And I expand the section "Friend request accepted"
# Expanding it shows me another "More..." link which takes me to the inbox # Expanding it shows me another "More..." link which takes me to the inbox
......
...@@ -9,7 +9,7 @@ So people can have access to their Mahara ...@@ -9,7 +9,7 @@ So people can have access to their Mahara
And the following "institutions" exist: And the following "institutions" exist:
| name | displayname | registerallowed | registerconfirm | | name | displayname | registerallowed | registerconfirm |
| instone | Institution One | ON | ON | | instone | Institution One | ON | ON |
And I follow "Logout" And I log out
And I follow "Register" And I follow "Register"
And I fill in the following: And I fill in the following:
| First name | Lightening | | First name | Lightening |
...@@ -21,7 +21,6 @@ So people can have access to their Mahara ...@@ -21,7 +21,6 @@ So people can have access to their Mahara
And I press "Register" And I press "Register"
And I follow "Login" And I follow "Login"
And I log in as "admin" with password "Kupuhipa1" And I log in as "admin" with password "Kupuhipa1"
And I follow "Administration" And I choose "Pending registrations" in "Institutions" from Admin menu
And I choose "Pending registrations" in "Institutions"
And I follow "Approve" And I follow "Approve"
And I press "Approve" And I press "Approve"
@javascript @core @core_login @javascript @core @core_login
Feature: Suckypasswords Test increase of array size Feature: Suckypasswords Test increase of array size
In order to limit the crappy passwords people try to put in In order to limit the crappy passwords people try to put in
As an admin As an admin
So I can make sure that my users/myself have decent passwords So I can make sure that my users/myself have decent passwords
Background: Background:
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 |
Scenario: Admin can't change password to anything on suckypasswords list (Bug #844457) Scenario: Admin can't change password to anything on suckypasswords list (Bug #844457)
Given I log in as "admin" with password "Kupuhipa1" Given I log in as "admin" with password "Kupuhipa1"
And I follow "Settings" And I click on "Show User Menu"
And I fill in "Current password" with "Kupuhipa1" And I follow "Settings"
And I fill in "New password" with "abc123" And I fill in "Current password" with "Kupuhipa1"
And I fill in "Confirm password" with "abc123" And I fill in "New password" with "abc123"
And I press "Save" And I fill in "Confirm password" with "abc123"
And I should see "Your password is too easy" And I press "Save"
And I fill in "Current password" with "Kupuhipa1" And I should see "Your password is too easy"
And I fill in "New password" with "dragon" And I fill in "Current password" with "Kupuhipa1"
And I fill in "Confirm password" with "dragon" And I fill in "New password" with "dragon"
And I press "Save" And I fill in "Confirm password" with "dragon"
And I should see "Your password is too easy" And I press "Save"
And I fill in "Current password" with "Kupuhipa1" And I should see "Your password is too easy"
And I fill in "New password" with "administrator" And I fill in "Current password" with "Kupuhipa1"
And I fill in "Confirm password" with "administrator" And I fill in "New password" with "administrator"
And I press "Save" And I fill in "Confirm password" with "administrator"
And I should see "Your password is too easy" And I press "Save"
And I fill in "Current password" with "Kupuhipa1" And I should see "Your password is too easy"
And I fill in "New password" with "mahara" And I fill in "Current password" with "Kupuhipa1"
And I fill in "Confirm password" with "mahara" And I fill in "New password" with "mahara"
And I press "Save" And I fill in "Confirm password" with "mahara"
And I should see "Your password is too easy" And I press "Save"
And I follow "Logout" And I should see "Your password is too easy"
And I log out
Scenario: Student can't change password to anything on suckypasswords list (Bug #844457) Scenario: Student can't change password to anything on suckypasswords list (Bug #844457)
Given I log in as "userA" with password "Kupuhipa1" Given I log in as "userA" with password "Kupuhipa1"
And I follow "Settings" And I click on "Show User Menu"
And I fill in "Current password" with "Kupuhipa1" And I follow "Settings"
And I fill in "New password" with "abc123" And I fill in "Current password" with "Kupuhipa1"
And I fill in "Confirm password" with "abc123" And I fill in "New password" with "abc123"
And I press "Save" And I fill in "Confirm password" with "abc123"
And I should see "Your password is too easy" And I press "Save"
And I fill in "Current password" with "Kupuhipa1" And I should see "Your password is too easy"
And I fill in "New password" with "dragon" And I fill in "Current password" with "Kupuhipa1"
And I fill in "Confirm password" with "dragon" And I fill in "New password" with "dragon"
And I press "Save" And I fill in "Confirm password" with "dragon"
And I should see "Your password is too easy" And I press "Save"
And I fill in "Current password" with "Kupuhipa1" And I should see "Your password is too easy"
And I fill in "New password" with "administrator" And I fill in "Current password" with "Kupuhipa1"
And I fill in "Confirm password" with "administrator" And I fill in "New password" with "administrator"
And I press "Save" And I fill in "Confirm password" with "administrator"
And I should see "Your password is too easy" And I press "Save"
And I fill in "Current password" with "Kupuhipa1" And I should see "Your password is too easy"
And I fill in "New password" with "mahara" And I fill in "Current password" with "Kupuhipa1"
And I fill in "Confirm password" with "mahara" And I fill in "New password" with "mahara"
And I press "Save" And I fill in "Confirm password" with "mahara"
And I should see "Your password is too easy" And I press "Save"
And I follow "Logout" And I should see "Your password is too easy"
And I log out
...@@ -10,15 +10,14 @@ Scenario: Creating an Institution assigning users and changing their passwords ...@@ -10,15 +10,14 @@ Scenario: Creating an Institution assigning users and changing their passwords
# Verifying log in was successful # Verifying log in was 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 "Institution" 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:
| Institution name | Institution One | | Institution name | Institution One |
And I press "Submit" And I press "Submit"
# Creating user 1 # Creating user 1
And I follow "Users" And I choose "Add user" in "Users" from Admin menu
And I choose "Add user" in "Users"
And I fill in the following: And I fill in the following:
| firstname | bob | | firstname | bob |
| lastname | bobby | | lastname | bobby |
...@@ -29,8 +28,7 @@ Scenario: Creating an Institution assigning users and changing their passwords ...@@ -29,8 +28,7 @@ Scenario: Creating an Institution assigning users and changing their passwords
And I enable the switch "Institution administrator" And I enable the switch "Institution administrator"
And I press "Create user" And I press "Create user"
# Creating user 2 # Creating user 2
And I follow "Users" And I choose "Add user" in "Users" from Admin menu
And I choose "Add user" in "Users"
And I fill in the following: And I fill in the following:
| firstname | Jen | | firstname | Jen |
| lastname | Jenny | | lastname | Jenny |
...@@ -40,7 +38,7 @@ Scenario: Creating an Institution assigning users and changing their passwords ...@@ -40,7 +38,7 @@ Scenario: Creating an Institution assigning users and changing their passwords
And I select "Institution One" from "Institution" And I select "Institution One" from "Institution"
And I press "Create user" And I press "Create user"
# Log out as user admin # Log out as user admin
And I follow "Logout" And I log out
# Log in as user 1 # Log in as user 1
When I log in as "bob" with password "mahara1" When I log in as "bob" with password "mahara1"
And I fill in the following: And I fill in the following:
...@@ -50,7 +48,7 @@ Scenario: Creating an Institution assigning users and changing their passwords ...@@ -50,7 +48,7 @@ Scenario: Creating an Institution assigning users and changing their passwords
# Verifying password was changed successfully # Verifying password was changed successfully
And I should see "Your new password has been saved" And I should see "Your new password has been saved"
# Changing password # Changing password
And I follow "Settings" And I choose "Settings" in "Settings" from User menu
And I fill in the following: And I fill in the following:
| Current password | mahara2 | | Current password | mahara2 |
| New password | mahara3 | | New password | mahara3 |
...@@ -59,7 +57,7 @@ Scenario: Creating an Institution assigning users and changing their passwords ...@@ -59,7 +57,7 @@ Scenario: Creating an Institution assigning users and changing their passwords
# Verifying password was changed # Verifying password was changed
And I should see "Preferences saved" And I should see "Preferences saved"
# Log out as user 1 # Log out as user 1
And I follow "Logout" And I log out
# Log in as user 2 # Log in as user 2
And I log in as "jen" with password "mahara1" And I log in as "jen" with password "mahara1"
And I fill in the following: And I fill in the following:
...@@ -69,7 +67,7 @@ Scenario: Creating an Institution assigning users and changing their passwords ...@@ -69,7 +67,7 @@ Scenario: Creating an Institution assigning users and changing their passwords
# Verifying password was changed # Verifying password was changed
And I should see "Your new password has been saved" And I should see "Your new password has been saved"
# Changing password # Changing password
And I follow "Settings" And I choose "Settings" in "Settings" from User menu
And I fill in the following: And I fill in the following:
| Current password | mahara2 | | Current password | mahara2 |
| New password | mahara3 | | New password | mahara3 |
......
...@@ -14,10 +14,9 @@ Background: ...@@ -14,10 +14,9 @@ Background:
Scenario: Accessing language string (Bug 1449350) Scenario: Accessing language string (Bug 1449350)
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 check "selectusers_2" And I check "selectusers_2"
And I press "Get reports" And I press "Get reports"
When I press "Access list" When I press "Access list"
Then I should not see "[[loggedin/view]]" Then I should not see "[[loggedin/view]]"
...@@ -6,8 +6,7 @@ So I can benefit from the use of different configuration changes ...@@ -6,8 +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) Scenario: Turning switches on and off on the Add user 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 "Add user" in "Users" from Admin menu
And I choose "Add user" in "Users"
And I set the following fields to these values: And I set the following fields to these values:
| Site staff | 1 | | Site staff | 1 |
| Site administrator | 1 | | Site administrator | 1 |
......
...@@ -10,8 +10,7 @@ Scenario: Create users by csv (Bug 1426983) ...@@ -10,8 +10,7 @@ Scenario: Create users by csv (Bug 1426983)
# Verifying log in was successful # Verifying log in was successful
And I should see "Admin User" And I should see "Admin User"
# Adding Users by CVS # Adding Users by CVS
When I follow "Administration" And I choose "Add users by CSV" in "Users" from Admin menu
And I choose "Add users by CSV" in "Users"
And I attach the file "UserCSV.csv" to "CSV file" And I attach the file "UserCSV.csv" to "CSV file"
And I disable the switch "Force password change" And I disable the switch "Force password change"
And I disable the switch "Email users about their account" And I disable the switch "Email users about their account"
...@@ -20,7 +19,7 @@ Scenario: Create users by csv (Bug 1426983) ...@@ -20,7 +19,7 @@ Scenario: Create users by csv (Bug 1426983)
And I should see "New users added: 4." And I should see "New users added: 4."
# Check that we can delete a user after upload (Bug #1558864) # Check that we can delete a user after upload (Bug #1558864)
And I choose "User search" in "Users" And I choose "User search" in "Users" from Admin menu
And I follow "kevin01" And I follow "kevin01"
And I follow "Suspend or delete this user" And I follow "Suspend or delete this user"
And I scroll to the id "delete" And I scroll to the id "delete"
......
...@@ -6,7 +6,8 @@ So I can make sure I can close/open site or clear cache ...@@ -6,7 +6,8 @@ So I can make sure I can close/open site or clear cache
Scenario: Closing the site Scenario: Closing the site
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 "Admin home"
# Verifying I'm on the right page # Verifying I'm on the right page
And I should see "Register your Mahara site" And I should see "Register your Mahara site"
And I scroll to the base of id "close_site" And I scroll to the base of id "close_site"
......
...@@ -6,8 +6,7 @@ I need to be able to turn switches on and off ...@@ -6,8 +6,7 @@ I need to be able to turn switches on and off
Scenario: Turning swtitches on and off on Networking page (Bug 1431569) Scenario: Turning swtitches on and off on Networking 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 "Networking" in "Configure site" from Admin menu
And I choose "Networking" in "Configure site"
And I set the following fields to these values: And I set the following fields to these values:
| Enable networking | 1 | | Enable networking | 1 |
| Auto-register all hosts | 1 | | Auto-register all hosts | 1 |
......
...@@ -18,5 +18,6 @@ Scenario: Checking that admin user can view messages in their mail sent from Con ...@@ -18,5 +18,6 @@ Scenario: Checking that admin user can view messages in their mail sent from Con
And I trigger cron And I trigger cron
And I go to the homepage And I go to the homepage
And I log in as "admin" with password "Kupuhipa1" And I log in as "admin" with password "Kupuhipa1"
And I click on "Show User Menu"
And I click on "mail" And I click on "mail"
Then I should see "New contact us" Then I should see "New contact us"
...@@ -6,8 +6,7 @@ I need to be able to enable it via a switch