diff options
author | Hiroyuki Sato <sathiroyuki@gmail.com> | 2013-09-13 07:30:49 +0900 |
---|---|---|
committer | Hiroyuki Sato <sathiroyuki@gmail.com> | 2013-09-13 07:30:49 +0900 |
commit | 553841ecedd7aa2122278b3c1c547b23392074c3 (patch) | |
tree | 3317ede940849cbf85a82ca4536df46b5ada62a8 /features/support | |
parent | df9cbbc924466d2343f399adde0cea7cf2553fdb (diff) | |
download | gitlab-ce-553841ecedd7aa2122278b3c1c547b23392074c3.tar.gz |
Improve timing problem in spinach test
Diffstat (limited to 'features/support')
-rw-r--r-- | features/support/env.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/features/support/env.rb b/features/support/env.rb index 61f8dc29670..8798e62ea72 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -26,10 +26,13 @@ WebMock.allow_net_connect! # require 'capybara/poltergeist' Capybara.javascript_driver = :poltergeist +Capybara.register_driver :poltergeist do |app| + Capybara::Poltergeist::Driver.new(app, :js_errors => false, :timeout => 60) +end Spinach.hooks.on_tag("javascript") do ::Capybara.current_driver = ::Capybara.javascript_driver end -Capybara.default_wait_time = 10 +Capybara.default_wait_time = 60 Capybara.ignore_hidden_elements = false DatabaseCleaner.strategy = :truncation |