@@ -12,7 +12,7 @@ Feature: Personal Details
1212 When I navigate to the Account Settings
1313 And I go to the provider personal details page
1414 And I fill in "Email" with "john.doe@foo.3scale.localhost"
15- And I fill in "Current password" with "supersecret "
15+ And I fill in "Current password" with "superSecret1234# "
1616 And I press "Update Details"
1717 Then I should see "User was successfully updated"
1818 And I should be on the provider personal details page
@@ -23,15 +23,15 @@ Feature: Personal Details
2323 And I follow "foo.3scale.localhost"
2424 Then I should be on the provider personal details page
2525 When I fill in "Email" with "john.doe@foo.3scale.localhost"
26- And I fill in "Current password" with "supersecret "
26+ And I fill in "Current password" with "superSecret1234# "
2727 And I press "Update Details"
2828 Then I should be on the provider users page
2929 When I follow "foo.3scale.localhost" within the table
3030 And I fill in "Email" with ""
31- And I fill in "Current password" with "supersecret "
31+ And I fill in "Current password" with "superSecret1234# "
3232 And I press "Update Details"
3333 And I fill in "Email" with "john.doe@foo.3scale.localhost"
34- And I fill in "Current password" with "supersecret "
34+ And I fill in "Current password" with "superSecret1234# "
3535 And I press "Update Details"
3636 Then I should be on the provider users page
3737 And I should see the flash message "User was successfully updated"
@@ -40,7 +40,7 @@ Feature: Personal Details
4040 When I navigate to the Account Settings
4141 And I go to the provider personal details page
4242 And I fill in "Username" with "u"
43- And I fill in "Current password" with "supersecret "
43+ And I fill in "Current password" with "superSecret1234# "
4444 And I press "Update Details"
4545 Then field "Username" has inline error "is too short (minimum is 3 characters)"
4646
@@ -74,17 +74,26 @@ Feature: Personal Details
7474 | User extra required |
7575 When I fill in "First name" with "dude"
7676 And I fill in "User extra required" with "whatever"
77- And I fill in "Current password" with "supersecret "
77+ And I fill in "Current password" with "superSecret1234# "
7878 And I press "Update Details"
7979 Then I should see "User was successfully updated"
8080 Then the "First name" field should contain "dude"
8181 And the "User extra required" field should contain "whatever"
8282
8383 Scenario : Update own password when the user was signed up with password
84+ Given the user was signed up with password
85+ When I navigate to the Account Settings
86+ And I go to the provider personal details page
87+ And I fill in "New password" with "superSecret1234!"
88+ And I fill in "Current password" with "superSecret1234#"
89+ And I press "Update Details"
90+ Then I should see "User was successfully updated"
91+
92+ Scenario : Update own password to a weak password
8493 Given the user was signed up with password
8594 When I navigate to the Account Settings
8695 And I go to the provider personal details page
8796 And I fill in "New password" with "hi"
88- And I fill in "Current password" with "supersecret "
97+ And I fill in "Current password" with "superSecret1234# "
8998 And I press "Update Details"
90- Then field "New password" has inline error "is too short (minimum is 6 characters)"
99+ Then I should see the error that the password is too weak
0 commit comments