summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@gitlab.com>2014-10-30 11:32:11 +0000
committerDmitriy Zaporozhets <dzaporozhets@gitlab.com>2014-10-30 11:32:11 +0000
commite1299bab7b1c275c145669a1a0eff2928511ecb4 (patch)
tree56c490e9ce39cdfe8ac4501201d34b8f3b2219f0 /spec/features
parentfa96b0517fbed0a63ad1c8ddbf0e67d710c08c4a (diff)
parentd9023da90d3d723bcb9ba372b0b89a8747aca6af (diff)
downloadgitlab-ce-e1299bab7b1c275c145669a1a0eff2928511ecb4.tar.gz
Merge branch 'feature_password_strength_indicator' into 'master'
Add a password strength indicator to SIGN UP and PROFILE pages Fixes #1647 Added a password strength indicator to the sign up page. You can see how it looks in the following screenshot. In the sign up page, it checks if the password contains the username and alerts the user about it. If the user still wants to proceed with creating his account, nothing will stop him. This is merely a message. The indicator changes the input background color based on the strength like this: ![new_full](https://dev.gitlab.org/uploads/gitlab/gitlabhq/0e6da27cfe/new_full.png) The password strength indicator can also be found in the profile edit page. It functions in almost the exact same way, with the exception that it doesn't check if the password contains the username. ![edit_full](https://dev.gitlab.org/uploads/gitlab/gitlabhq/f73001539e/edit_full.png) There are tests included. /cc @job See merge request !1227
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/users_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/features/users_spec.rb b/spec/features/users_spec.rb
index 7b831c48611..a1206989d39 100644
--- a/spec/features/users_spec.rb
+++ b/spec/features/users_spec.rb
@@ -11,7 +11,7 @@ describe 'Users', feature: true do
fill_in "user_name", with: "Name Surname"
fill_in "user_username", with: "Great"
fill_in "user_email", with: "name@mail.com"
- fill_in "user_password", with: "password1234"
+ fill_in "user_password_sign_up", with: "password1234"
fill_in "user_password_confirmation", with: "password1234"
expect { click_button "Sign up" }.to change {User.count}.by(1)
end