Allow more phantomjs timeout to avoid the first-spec-timeout issue

This commit is contained in:
Rohan Mitchell
2015-05-13 15:34:27 +10:00
parent 5e5628d0c3
commit 7946340dad

View File

@@ -33,7 +33,7 @@ require 'capybara/poltergeist'
Capybara.javascript_driver = :poltergeist
Capybara.register_driver :poltergeist do |app|
options = {phantomjs_options: ['--load-images=no'], window_size: [1280, 800], timeout: 1.minute}
options = {phantomjs_options: ['--load-images=no'], window_size: [1280, 800], timeout: 2.minutes}
# Extend poltergeist's timeout to allow ample time to use pry in browser thread
#options.merge! {timeout: 5.minutes}
# Enable the remote inspector: Use page.driver.debug to open a remote debugger in chrome