Allow more time for phantomjs, required by first admin spec where assets are compiled

This commit is contained in:
Rohan Mitchell
2015-04-17 15:46:51 +10:00
parent 0d4dbd23fd
commit a1673afff0

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]}
options = {phantomjs_options: ['--load-images=no'], window_size: [1280, 800], timeout: 1.minute}
# 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