Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
b8eac89f
Commit
b8eac89f
authored
Jan 20, 2015
by
Amelia Cordwell
Committed by
Son Nguyen
Jan 21, 2015
Browse files
Behat test for suckypasswords (Bug 844457)
Change-Id: If28d4ad59d4bff9fedbb4e24c19975adb60ad1c3
parent
eb697b9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/behat/features/account/suckypasswords_array_increase.feature
0 → 100644
View file @
b8eac89f
@javascript
@core
@core_login
Feature
:
Suckypasswords Test increase of array size
In order to limit the crappy passwords people try to put in
As an admin
So I can make sure that my users/myself have decent passwords
Background
:
Given the following "users" exist
:
|
username
|
password
|
email
|
firstname
|
lastname
|
institution
|
authname
|
role
|
|
userA
|
Password1
|
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"
And
I follow
"Settings"
And
I fill in
"Current password"
with
"Password1"
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
"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
"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
"New password"
with
"mahara"
And
I fill in
"Confirm password"
with
"mahara"
And
I press
"Save"
And
I should see
"Your password is too easy"
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"
And
I follow
"Settings"
And
I fill in
"Current password"
with
"Password1"
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
"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
"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
"New password"
with
"mahara"
And
I fill in
"Confirm password"
with
"mahara"
And
I press
"Save"
And
I should see
"Your password is too easy"
And
I follow
"Logout"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment