summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/test_helper.rb1
-rw-r--r--users/test/integration/browser/account_test.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index a409b58..26b99f4 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -31,6 +31,7 @@ Capybara.run_server = true
Capybara.app_host = 'http://lvh.me:3003'
Capybara.server_port = 3003
Capybara.javascript_driver = :poltergeist
+Capybara.default_wait_time = 5
class BrowserIntegrationTest < ActionDispatch::IntegrationTest
# Make the Capybara DSL available
diff --git a/users/test/integration/browser/account_test.rb b/users/test/integration/browser/account_test.rb
index 9f6d067..ce63baf 100644
--- a/users/test/integration/browser/account_test.rb
+++ b/users/test/integration/browser/account_test.rb
@@ -16,6 +16,7 @@ class AccountTest < BrowserIntegrationTest
click_on 'Sign Up'
assert page.has_content?("Welcome #{username}")
click_on 'Logout'
+ assert page.has_content?("Sign Up")
assert_equal '/', current_path
end