Increase Poltergeist timeout in specs

This is to try to avoid flaky js specs in Travis
This commit is contained in:
Amaia Castro
2017-01-19 13:38:06 +01:00
parent c918c9e081
commit 551e8dc6c1

View File

@@ -26,6 +26,7 @@ end
Capybara.register_driver :poltergeist do |app| Capybara.register_driver :poltergeist do |app|
Capybara::Poltergeist::Driver.new(app, Capybara::Poltergeist::Driver.new(app,
timeout: 1.minute,
inspector: true, # allows remote debugging by executing page.driver.debug inspector: true, # allows remote debugging by executing page.driver.debug
phantomjs_logger: File.open(File::NULL, "w"), # don't print console.log calls in console phantomjs_logger: File.open(File::NULL, "w"), # don't print console.log calls in console
phantomjs_options: ['--load-images=no', '--disk-cache=false'], phantomjs_options: ['--load-images=no', '--disk-cache=false'],