Commit 4316d964 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug 1468137: Use better default password for behat"

parents c90f6b10 d5809798
......@@ -40,7 +40,7 @@ class BehatTestingUtil extends TestingUtil {
*/
protected static $sitedefaultinfo = array(
'admin' => array(
'password' => 'Password1',
'password' => 'Kupuhipa1',
'email' => 'admin@test.mahara.org',
),
'sitename' => self::BEHATSITENAME,
......
......@@ -6,10 +6,10 @@ Feature: Mahara users can change their account settings
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Password1 | test01@example.com | Pete | Mc | mahara | internal | member |
| userA | Kupuhipa1 | test01@example.com | Pete | Mc | mahara | internal | member |
Scenario: Change notifications
Given I log in as "userA" with password "Password1"
Given I log in as "userA" with password "Kupuhipa1"
And I follow "Settings"
And I follow "Notifications"
And I select "Email" from "activity_viewaccess"
......
......@@ -6,7 +6,7 @@ Feature: Editing a profile page
Scenario: Editing admin profile page (Bug: 1426983)
# Log in as users
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
# Updating Profile
When I follow "Content"
And I fill in the following:
......
......@@ -7,7 +7,7 @@ So I can recover an account after forgetting my username or password
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Password1 | test01@example.com | Pete | Mc | mahara | internal | member |
| userA | Kupuhipa1 | test01@example.com | Pete | Mc | mahara | internal | member |
And I am on homepage
And I follow "Lost username / password"
......
......@@ -7,10 +7,10 @@ So I can be friends with other users
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Password1 | test01@example.com | Pete | Mc | mahara | internal | member |
| userA | Kupuhipa1 | test01@example.com | Pete | Mc | mahara | internal | member |
Scenario: Sending friend requests from student to admin (Bug 1440908)
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
And I follow "Administration"
And I choose "User search" in "Users"
And I follow "Pete"
......
......@@ -7,7 +7,7 @@ So I can prevent dictionary attacks on my passwords
Scenario: Too many bad password attempts
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Password1 | test01@example.com | Pete | Mc | mahara | internal | member |
| userA | Kupuhipa1 | test01@example.com | Pete | Mc | mahara | internal | member |
# I should not see any error message on the first 5 attempts
When I log in as "userA" with password "wrongpassword"
......@@ -19,12 +19,12 @@ Then I should not see "You have exceeded the maximum login attempts."
And I should see "Login"
# I've failed 5 times. Now even if I log in with the correct password I'm locked out.
When I log in as "userA" with password "Password1"
When I log in as "userA" with password "Kupuhipa1"
Then I should see "You have exceeded the maximum login attempts."
And I should see "Login"
# The cron should reset the limit, allowing me to log in again
When I trigger the cron
And I log in as "userA" with password "Password1"
And I log in as "userA" with password "Kupuhipa1"
# I'm logged in!
Then I should see "Dashboard"
......@@ -5,7 +5,7 @@ As an admin
So people can have access to their Mahara
Scenario: Registering as a new student and checking swtich can flick back and forth (Bug 1431569)
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
And the following "institutions" exist:
| name | displayname | registerallowed | registerconfirm |
| instone | Institution One | ON | ON |
......@@ -20,7 +20,7 @@ So people can have access to their Mahara
And I wait "4" seconds
And I press "Register"
And I follow "Login"
And I log in as "admin" with password "Password1"
And I log in as "admin" with password "Kupuhipa1"
And I follow "Administration"
And I choose "Pending registrations" in "Institutions"
And I follow "Approve"
......
......@@ -7,27 +7,27 @@
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Password1 | 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)
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
And I follow "Settings"
And I fill in "Current password" with "Password1"
And I fill in "Current password" with "Kupuhipa1"
And I fill in "New password" with "abc123"
And I fill in "Confirm password" with "abc123"
And I press "Save"
And I should see "Your password is too easy"
And I fill in "Current password" with "Password1"
And I fill in "Current password" with "Kupuhipa1"
And I fill in "New password" with "dragon"
And I fill in "Confirm password" with "dragon"
And I press "Save"
And I should see "Your password is too easy"
And I fill in "Current password" with "Password1"
And I fill in "Current password" with "Kupuhipa1"
And I fill in "New password" with "administrator"
And I fill in "Confirm password" with "administrator"
And I press "Save"
And I should see "Your password is too easy"
And I fill in "Current password" with "Password1"
And I fill in "Current password" with "Kupuhipa1"
And I fill in "New password" with "mahara"
And I fill in "Confirm password" with "mahara"
And I press "Save"
......@@ -35,24 +35,24 @@
And I follow "Logout"
Scenario: Student can't change password to anything on suckypasswords list (Bug #844457)
Given I log in as "userA" with password "Password1"
Given I log in as "userA" with password "Kupuhipa1"
And I follow "Settings"
And I fill in "Current password" with "Password1"
And I fill in "Current password" with "Kupuhipa1"
And I fill in "New password" with "abc123"
And I fill in "Confirm password" with "abc123"
And I press "Save"
And I should see "Your password is too easy"
And I fill in "Current password" with "Password1"
And I fill in "Current password" with "Kupuhipa1"
And I fill in "New password" with "dragon"
And I fill in "Confirm password" with "dragon"
And I press "Save"
And I should see "Your password is too easy"
And I fill in "Current password" with "Password1"
And I fill in "Current password" with "Kupuhipa1"
And I fill in "New password" with "administrator"
And I fill in "Confirm password" with "administrator"
And I press "Save"
And I should see "Your password is too easy"
And I fill in "Current password" with "Password1"
And I fill in "Current password" with "Kupuhipa1"
And I fill in "New password" with "mahara"
And I fill in "Confirm password" with "mahara"
And I press "Save"
......
......@@ -6,7 +6,7 @@ Feature: Creating users and an institution enrolling users and changing their pa
Scenario: Creating an Institution assigning users and changing their passwords
# Log in as Admin
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
# Verifying log in was successful
And I should see "Admin User"
# Creating an Institution
......
......@@ -10,10 +10,10 @@ Background:
| instone | Institution One | ON | OFF |
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Password1 | test01@example.com | Pete | Mc | instone | internal | member |
| userA | Kupuhipa1 | test01@example.com | Pete | Mc | instone | internal | member |
Scenario: Accessing language string (Bug 1449350)
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
And I follow "Administration"
And I follow "Users"
And I set the following fields to these values:
......
......@@ -5,7 +5,7 @@ As an admin
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 "Password1"
Given I log in as "admin" with password "Kupuhipa1"
And I follow "Administration"
And I choose "Add user" in "Users"
# Checking the default settings are correct
......
......@@ -6,7 +6,7 @@ Feature: Allow user csv upload to ignore non-essential mandatory fields
Scenario: Create users by csv (Bug 1426983)
# Log in as "Admin" user
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
# Verifying log in was successful
And I should see "Admin User"
# Adding Users by CVS
......
......@@ -5,7 +5,7 @@ As an admin
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 "Password1"
Given I log in as "admin" with password "Kupuhipa1"
And I follow "Administration"
And I choose "Networking" in "Configure site"
# Checking the default settings are set
......
......@@ -11,7 +11,7 @@ Scenario: Checking that admin user can view messages in their mail sent from Con
And I set the field "Subject" to "Whats wrong"
And I set the field "Message" to "hello world"
When I click on "Send message"
And I log in as "admin" with password "Password1"
And I log in as "admin" with password "Kupuhipa1"
And I trigger cron
And I go to the homepage
And I click on "mail"
......
......@@ -5,7 +5,7 @@ As an admin
I need to be able to use the switches and change the configuration
Scenario: Turning the switches on and off on Cookie consent page (Bug 1431569)
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
And I go to "admin/site/cookieconsent.php"
And I follow "Styling options"
And I follow "Feature options"
......
......@@ -6,7 +6,7 @@ Feature: Creating/Deleting external links from the Links and Resources sideblock
Scenario: Creating and deleting external links (Selenium 1426983)
# Log in as "Admin" user
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
# Verifying log in as successful
And I should see "Admin User"
# Entering an external link
......
......@@ -9,10 +9,10 @@ I can create a new page from the site default portfolio page
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Password1 | test01@example.com | Pete | Mc | mahara | internal | member |
| userA | Kupuhipa1 | test01@example.com | Pete | Mc | mahara | internal | member |
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 "Password1"
Given I log in as "admin" with password "Kupuhipa1"
When I go to "admin/site/views.php"
And I should see "Page template"
And I click on "Edit content and layout" in "Page template" row
......@@ -30,7 +30,7 @@ I can create a new page from the site default portfolio page
And I log out
And I should see "Login"
# Create a new portfolio page
And I log in as "userA" with password "Password1"
And I log in as "userA" with password "Kupuhipa1"
And I choose "Portfolio"
And I should see "Pages"
And I should see "Create page"
......
......@@ -5,7 +5,7 @@ As as admin
I need to expand all the fieldsets
Scenario: Expanding all the fieldsets
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
When I follow "Administration"
And I follow "Configure site"
Then I expand all fieldsets
......
......@@ -5,7 +5,7 @@ As an admin
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 "Password1"
Given I log in as "admin" with password "Kupuhipa1"
And I follow "Administration"
And I choose "Group categories" in "Groups (Administer groups)"
# Checking the default is correct
......
......@@ -11,7 +11,7 @@ Background:
Scenario: Confirm that multiple notification choices are available (Bug #1299993)
# Log in as admin
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
# Verifying log in was successful
And I should see "Admin User"
# Navigating to notification settings
......
......@@ -5,7 +5,7 @@
So I can see the notification settings in alphabetical order.
Scenario: Admin logs in and checks notification settings (Bug 1388682)
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
When I click on "Administration"
And I choose "Site options" in "Configure site"
And I click on "Notification settings"
......
......@@ -5,7 +5,7 @@ As an admin
So I can benefit from the uses of the switches
Scenario: Turning the switches on and off on Internal Search (Bug 1431569)
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
And I go to "admin/extensions/pluginconfig.php?plugintype=search&pluginname=internal"
# Verifing in on the right page
And I should see "Plugin administration: search: internal"
......
......@@ -6,7 +6,7 @@ Feature: Random clicking test
Scenario: Clicking randomly around Mahara (Bug: 1426983)
# Log in as an Admin user
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
# Verifying log in was successful
And I should see "Admin User"
# Checking Content Menu
......
......@@ -5,7 +5,7 @@ As an admin
So I can send this data out
Scenario: Registered data that is sent (Bug 1447865)
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
And I follow "Administration"
And I choose "Register" in "Admin home"
When I expand all fieldsets
......
......@@ -7,11 +7,11 @@ So students have to provide mandatory credentials
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Password1 | test01@example.com | Pete | Mc | mahara | internal | member |
| userA | Kupuhipa1 | test01@example.com | Pete | Mc | mahara | internal | member |
Scenario: Social media credentials upon logging in as student (Bug 1432988)
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
And I go to "/admin/extensions/pluginconfig.php?plugintype=artefact&pluginname=internal&type=profile"
And I set the following fields to these values:
| Social media | 1 |
......@@ -19,7 +19,7 @@ Scenario: Social media credentials upon logging in as student (Bug 1432988)
And I should see "Settings saved"
And I should not see "[[webpage/artefact.internal]]"
And I follow "Logout"
When I log in as "userA" with password "Password1"
When I log in as "userA" with password "Kupuhipa1"
And I set the following fields to these values:
| Social network * | Facebook URL |
And I set the following fields to these values:
......
......@@ -5,7 +5,7 @@ Feature: Missing language string when resizing images in plugin administration
So I know what I'm turning on or off.
Scenario: Checking the language string is visible (Bug 1446488)
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
When I go to "admin/extensions/pluginconfig.php?plugintype=artefact&pluginname=file&type=file"
And I follow "Resize images on upload"
Then I should see "Automatically resize large images on upload"
......
......@@ -6,7 +6,7 @@ So I can check the field doesn't error
Scenario: sql injection attempt on search field
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
And I wait "1" seconds
When I set the following fields to these values:
| Search users | 'or 1=1;-- |
......
......@@ -5,7 +5,7 @@ As an admin
So I can configure the site to the way the client wants
Scenario: Turning the switches on and off on the Site Options page (Bug 1431569)
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
And I go to "admin/site/options.php"
# Verifying I'm on the right page
And I should see "Here you can set some global options that will apply by default throughout the entire site."
......
......@@ -5,7 +5,7 @@ As an admin
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 "Password1"
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"
......
......@@ -5,7 +5,7 @@ As an admin
So I can change the settings on a page
Scenario: Turning the swtich on and off on the Upload Groups Via CSV page (Bug 1431569)
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
And I follow "Administration"
And I choose "Add groups by CSV" in "Groups (Administer groups)"
# Checking the default value is correct
......
......@@ -5,10 +5,10 @@ As an admin
So I can benefit from the use of different configurations
Scenario: Turning the switches on and off on user search page (Bug 1431569)
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Password1 | test01@example.com | Pete | Mc | mahara | internal | admin |
| userA | Kupuhipa1 | test01@example.com | Pete | Mc | mahara | internal | admin |
And I follow "Administration"
And I choose "User search" in "Users"
And I follow "Advanced options"
......
......@@ -8,10 +8,10 @@ So I can benefit from the cross over of Moodle/Mahara
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Password1 | test01@example.com | Pete | Mc | mahara | internal | member |
| userA | Kupuhipa1 | test01@example.com | Pete | Mc | mahara | internal | member |
Scenario: Turning master swtich on
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
And I follow "Administration"
And I choose "Web services" in "Extensions"
# Turning the master switch on
......@@ -21,7 +21,7 @@ Scenario: Turning master swtich on
Scenario: Logging in as student to try turn switch on
Given I log in as "userA" with password "Password1"
Given I log in as "userA" with password "Kupuhipa1"
And I should see "Pete Mc"
# Checking the student cant access the link
And "Administration" "link" should not be visible
......
......@@ -5,7 +5,7 @@ As an admin
So I can benefit from the mahara/moodle cross over.
Scenario: Turning Master swtiches and protocol switches on checking test client page is accessible (Bug 1431540)
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
And I follow "Administration"
And I choose "Web services" in "Extensions"
# Turning the master switch on
......
......@@ -6,10 +6,10 @@ Feature: Mahara users can create their blogs
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Password1 | test01@example.com | Pete | Mc | mahara | internal | member |
| userA | Kupuhipa1 | test01@example.com | Pete | Mc | mahara | internal | member |
Scenario: Create blogs
Given I log in as "userA" with password "Password1"
Given I log in as "userA" with password "Kupuhipa1"
And I set the following account settings values:
| field | value |
| multipleblogs | 1 |
......
......@@ -7,13 +7,13 @@ I need to be able to add a Note block to my portfolio
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Password1 | test01@example.com | Pete | Mc | mahara | internal | member |
| userA | Kupuhipa1 | test01@example.com | Pete | Mc | mahara | internal | member |
Scenario Outline: Adding a Note block to a portfolio (Bug 1424512)
# Logging in as a user
Given I log in as "<Log>" with password "Password1"
Given I log in as "<Log>" with password "Kupuhipa1"
# Verifying log in
And I should see "<Verify>"
# Creating a page
......
......@@ -7,7 +7,7 @@ Feature: Adding tags and Verifying them
Scenario: Adding tags to files (Bug 1426983)
# Log in as the admin user
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
# Verifying log in was successful
And I should see "Admin User"
# Creating a folder with a tag
......
......@@ -7,7 +7,7 @@ Feature: Adding pages to a collection
Scenario: Creating a collection AND adding pages
# Log in as "Admin" user
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
# Verifying log in was successful
And I should see "Admin User"
Given the following "pages" exist:
......
......@@ -5,7 +5,7 @@ Feature: Annotation block is off by default
So I can annotate people's work
Scenario: Accessing annotation block (Bug 1443730)
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
# Creating a page
And I choose "Pages" in "Portfolio"
And I press "Create page"
......
......@@ -16,7 +16,7 @@ Given the following "collections" exist:
Scenario: Accessing the popup window in the Copy or page or collection (Bug 1361450)
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
And I go to "view/choosetemplate.php"
And I follow "User Col 01"
And I should see "User Col 01 by admin"
......
......@@ -6,7 +6,7 @@ Feature: Creating a page with stuff in it
Scenario: Creating a page with content in it (Bug 1426983)
# Log in as "Admin" user
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
# Verifying log in was successful
And I should see "Admin User"
# Navigating to Portfolio to create a page
......
......@@ -7,10 +7,10 @@ So I can choose how I want to display my feedback
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Password1 | test01@example.com | Pete | Mc | mahara | internal | member |
| userA | Kupuhipa1 | test01@example.com | Pete | Mc | mahara | internal | member |
Scenario Outline: Turning switchboxes on and off on feedback page (Bug 1431569)
Given I log in as "<log>" with password "Password1"
Given I log in as "<log>" with password "Kupuhipa1"
And I follow "Portfolio"
And I press "Create page"
And I fill in the following:
......
......@@ -7,7 +7,7 @@ Feature: Creating folders
Scenario: Creating sub folder and attaching files (Bug 1426983)
# Log in as "Admin user"
Given I log in as "admin" with password "Password1"
Given I log in as "admin" with password "Kupuhipa1"
# Verifying log in was successful
And I should see "Admin User"
# Creating folder 1
......
......@@ -8,14 +8,14 @@ So I can see when the collection was updated last
Scenario: Adding collection to group (Bug 1448807)
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Password1 | test01@example.com | Pete | Mc | mahara | internal | member |
| userA | Kupuhipa1 | test01@example.com | Pete | Mc | mahara | internal | member |
And the following "groups" exist:
| name | owner | description | grouptype | open | invitefriends | editroles | submittableto | allowarchives | members | admins |
| group 01 | userA | This is group 01 | standard | ON | ON | all | ON | ON | userA | userA |
And the following "pages" exist:
| title | description| ownertype | ownername |
| Site Page 01 | This is the page 01 of the site | group 01 | userA |
When I log in as "userA" with password "Password1"
When I log in as "userA" with password "Kupuhipa1"
And I choose "Collections" in "Portfolio"
And I follow "New collection"
And I set the following fields to these values:
......
......@@ -7,9 +7,9 @@
Scenario: Checking the jump list of the paginagtor (Bug 1409370)
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Password1 | test01@example.com | Pete | Mc | mahara | internal | member |
| userB | Password1 | test02@example.com | Simon | Mc | mahara | internal | member |
And I log in as "userA" with password "Password1"
| userA | Kupuhipa1 | test01@example.com | Pete | Mc | mahara | internal | member |
| userB | Kupuhipa1 | test02@example.com | Simon | Mc | mahara | internal | member |
And I log in as "userA" with password "Kupuhipa1"
And the following "pages" exist:
| title | description| ownertype | ownername |
| A's Page 01 | UserA's page 01 | user | userA |
......@@ -42,7 +42,7 @@
And I select "Public" from "accesslist[0][searchtype]"
And I press "editaccess_submit"
And I follow "Logout"
And I log in as "userB" with password "Password1"