mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Allow more time for phantomjs, required by first admin spec where assets are compiled
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user