From 7946340dad282e4d604a1820013ca272127b1a6f Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Wed, 13 May 2015 15:34:27 +1000 Subject: [PATCH] Allow more phantomjs timeout to avoid the first-spec-timeout issue --- spec/spec_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index a911fe7742..f1e43115c9 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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