suckypasswords_array_increase.feature 2.52 KB
Newer Older
1
2
3
4
5
@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
6

7
8
9
10
Background:
 Given the following "users" exist:
    | username | password | email | firstname | lastname | institution | authname | role |
    | userA | Kupuhipa1 | test01@example.com | Pete | Mc | mahara | internal | member |
11

12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 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 "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 "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 "Kupuhipa1"
 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 log out
37

38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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 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 "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 "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 "Kupuhipa1"
 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 log out