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

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
......
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