summaryrefslogtreecommitdiff
path: root/users/test/integration/browser/account_test.rb
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2013-10-28 10:57:36 -0700
committerjessib <jessib@riseup.net>2013-10-28 10:57:36 -0700
commit7b003172e13215a5b6a1d0fa17b38dd3e2706e45 (patch)
treedeab84ac7f9f8d24df12a8559c1d98569e8cdacb /users/test/integration/browser/account_test.rb
parent630b6c603594df8a9fa99555928ca68df8e8d8fa (diff)
parent1ef3e9df271934b983ff5afe60c2dcf34c090a98 (diff)
Merge pull request #107 from azul/feature/reenable-submit-button
reset button loading... state on error (#4231)
Diffstat (limited to 'users/test/integration/browser/account_test.rb')
-rw-r--r--users/test/integration/browser/account_test.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/users/test/integration/browser/account_test.rb b/users/test/integration/browser/account_test.rb
index 1deda45..8e03856 100644
--- a/users/test/integration/browser/account_test.rb
+++ b/users/test/integration/browser/account_test.rb
@@ -27,6 +27,17 @@ class AccountTest < BrowserIntegrationTest
User.find_by_login(username).account.destroy
end
+ test "failed login" do
+ visit '/'
+ click_on 'Log In'
+ fill_in 'Username', with: "username"
+ fill_in 'Password', with: "wrong password"
+ click_on 'Log In'
+ assert page.has_selector? 'input.btn-primary.disabled'
+ assert page.has_content? I18n.t(:invalid_user_pass)
+ assert page.has_no_selector? 'input.btn-primary.disabled'
+ end
+
test "change password" do
username, password = submit_signup
click_on "Account Settings"