suckypasswords_array_increase.feature 2.52 KB
Newer Older
1
2
3
4
5
6
7
8
9
 @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 |
10
     | userA | Kupuhipa1 | test01@example.com | Pete | Mc | mahara | internal | member |
11
12

 Scenario: Admin can't change password to anything on suckypasswords list (Bug #844457)
13
  Given I log in as "admin" with password "Kupuhipa1"
14
  And I follow "Settings"
15
  And I fill in "Current password" with "Kupuhipa1"
16
17
18
19
  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"
20
  And I fill in "Current password" with "Kupuhipa1"
21
22
23
24
  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"
25
  And I fill in "Current password" with "Kupuhipa1"
26
27
28
29
  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"
30
  And I fill in "Current password" with "Kupuhipa1"
31
32
33
34
35
36
37
  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)
38
  Given I log in as "userA" with password "Kupuhipa1"
39
  And I follow "Settings"
40
  And I fill in "Current password" with "Kupuhipa1"
41
42
43
44
  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"
45
  And I fill in "Current password" with "Kupuhipa1"
46
47
48
49
  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"
50
  And I fill in "Current password" with "Kupuhipa1"
51
52
53
54
  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"
55
  And I fill in "Current password" with "Kupuhipa1"
56
57
58
59
60
  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"