summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-04-24 13:17:06 +0200
committerAzul <azul@leap.se>2014-04-25 12:18:40 +0200
commitf23ca91c01ce14d75c221ccddb7d8b1b7e2c0cef (patch)
tree339d5b76aa2f44aff6202446eafd37cac20306b2
parent615261a6f0d1bae5d999e3014f18191ed1ba1008 (diff)
make test independent of button tag
input or button can be used
-rw-r--r--test/integration/browser/account_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/browser/account_test.rb b/test/integration/browser/account_test.rb
index a5677ad..6d5f7f9 100644
--- a/test/integration/browser/account_test.rb
+++ b/test/integration/browser/account_test.rb
@@ -131,9 +131,9 @@ class AccountTest < BrowserIntegrationTest
end
def assert_invalid_login(page)
- assert page.has_selector? 'input.btn-primary.disabled'
+ assert page.has_selector? '.btn-primary.disabled'
assert page.has_content? I18n.t(:invalid_user_pass)
- assert page.has_no_selector? 'input.btn-primary.disabled'
+ assert page.has_no_selector? '.btn-primary.disabled'
end
def inject_malicious_js