summaryrefslogtreecommitdiff
path: root/features/support
diff options
context:
space:
mode:
authorrandx <dmitriy.zaporozhets@gmail.com>2012-08-11 23:17:18 +0300
committerrandx <dmitriy.zaporozhets@gmail.com>2012-08-11 23:17:18 +0300
commitbb50917a296d198ff1ede52c0abe36009eaf6f3a (patch)
tree8b9eef6de9d14021032b3c421a04239c5c45651a /features/support
parent44f79b2cb11a7e05be19ff0d37bad101290a9492 (diff)
downloadgitlab-ce-bb50917a296d198ff1ede52c0abe36009eaf6f3a.tar.gz
Trying to prevent travis broken builds by increase capybara timout for cucumber
Diffstat (limited to 'features/support')
-rw-r--r--features/support/env.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/features/support/env.rb b/features/support/env.rb
index ce68081b739..47253509262 100644
--- a/features/support/env.rb
+++ b/features/support/env.rb
@@ -65,3 +65,11 @@ end
# See https://github.com/cucumber/cucumber-rails/blob/master/features/choose_javascript_database_strategy.feature
Cucumber::Rails::Database.javascript_strategy = :truncation
+# We need this to fix the random timeout error that we were seeing in CI.
+Capybara.register_driver :selenium_with_long_timeout do |app|
+ client = Selenium::WebDriver::Remote::Http::Default.new
+ client.timeout = 120
+ Capybara::Selenium::Driver.new(app, :browser => :firefox, :http_client => client)
+end
+
+Capybara.javascript_driver = :selenium_with_long_timeout