summaryrefslogtreecommitdiff
path: root/features/profile
diff options
context:
space:
mode:
authorPatricio Cano <patricio@gitlab.com>2014-10-24 17:19:35 -0500
committerPatricio Cano <patricio@gitlab.com>2014-10-24 17:19:35 -0500
commit000af8d5d7087cadbfd8ad677fb941e74a8ee3c7 (patch)
treeb55b4d6df23e4cfc64daa387dff2e0b2d1ab2ec1 /features/profile
parent7fbc4f5b3ac2abfa8ad94cc228114462b7b94601 (diff)
downloadgitlab-ce-000af8d5d7087cadbfd8ad677fb941e74a8ee3c7.tar.gz
Moved require from application.js to password_strength.js
Corrected div id for profile password/edit Added first spinach tests
Diffstat (limited to 'features/profile')
-rw-r--r--features/profile/profile.feature19
1 files changed, 19 insertions, 0 deletions
diff --git a/features/profile/profile.feature b/features/profile/profile.feature
index d2125e013bc..d7fa370fe2a 100644
--- a/features/profile/profile.feature
+++ b/features/profile/profile.feature
@@ -83,3 +83,22 @@ Feature: Profile
Given I visit profile design page
When I change my code preview theme
Then I should receive feedback that the changes were saved
+
+ @javascript
+ Scenario: I see the password strength indicator
+ Given I visit profile password page
+ When I try to set a weak password
+ Then I should see the input field yellow
+
+ @javascript
+ Scenario: I see the password strength indicator error
+ Given I visit profile password page
+ When I try to set a short password
+ Then I should see the input field red
+ And I should see the password error message
+
+ @javascript
+ Scenario: I see the password strength indicator with success
+ Given I visit profile password page
+ When I try to set a strong password
+ Then I should see the input field green \ No newline at end of file