Commit bb50917a296d198ff1ede52c0abe36009eaf6f3a
1 parent
44f79b2c
Exists in
master
and in
4 other branches
Trying to prevent travis broken builds by increase capybara timout for cucumber
Showing
1 changed file
with
8 additions
and
0 deletions
Show diff stats
features/support/env.rb
| ... | ... | @@ -65,3 +65,11 @@ end |
| 65 | 65 | # See https://github.com/cucumber/cucumber-rails/blob/master/features/choose_javascript_database_strategy.feature |
| 66 | 66 | Cucumber::Rails::Database.javascript_strategy = :truncation |
| 67 | 67 | |
| 68 | +# We need this to fix the random timeout error that we were seeing in CI. | |
| 69 | +Capybara.register_driver :selenium_with_long_timeout do |app| | |
| 70 | + client = Selenium::WebDriver::Remote::Http::Default.new | |
| 71 | + client.timeout = 120 | |
| 72 | + Capybara::Selenium::Driver.new(app, :browser => :firefox, :http_client => client) | |
| 73 | +end | |
| 74 | + | |
| 75 | +Capybara.javascript_driver = :selenium_with_long_timeout | ... | ... |