diff options
author | azul <azul@riseup.net> | 2014-05-09 11:03:53 +0200 |
---|---|---|
committer | azul <azul@riseup.net> | 2014-05-09 11:03:53 +0200 |
commit | 726244f1c6bb72fb53a257c084dfbdf7b9c2b03c (patch) | |
tree | 1f4bf66497851265a62081124a4ff5b23d0cd09e /test/integration | |
parent | cf6aa0a6c8852424e39e4785a1bd783ab475376b (diff) | |
parent | 616313b406e561b45a73e34f54fd5fc7595f9658 (diff) |
Merge pull request #156 from azul/bugfix/5548-hide-signup-forms-without-js0.5.1-rc2
hide srp forms when no js is available
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/browser/account_test.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/integration/browser/account_test.rb b/test/integration/browser/account_test.rb index 6d5f7f9..4e11520 100644 --- a/test/integration/browser/account_test.rb +++ b/test/integration/browser/account_test.rb @@ -123,6 +123,20 @@ class AccountTest < BrowserIntegrationTest assert page.has_content?("server failed") end + test "does not render signup form without js" do + Capybara.current_driver = :rack_test # no js + visit '/signup' + assert page.has_no_content?("Username") + assert page.has_no_content?("Password") + end + + test "does not render login form without js" do + Capybara.current_driver = :rack_test # no js + visit '/login' + assert page.has_no_content?("Username") + assert page.has_no_content?("Password") + end + def attempt_login(username, password) click_on 'Log In' fill_in 'Username', with: username |