2 seconds may have been a bit tight, increasing to 5

Will Read 9 年之前
父节点
当前提交
7c9fe17493
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      spec/capybara_helper.rb

+ 2 - 2
spec/capybara_helper.rb

@@ -5,11 +5,11 @@ require 'capybara-select2'
5 5
 require 'helpers/capybara_poltergeist_screenshot'
6 6
 
7 7
 Capybara.register_driver :poltergeist do |app|
8
-  Capybara::Poltergeist::Driver.new(app, timeout: 2)
8
+  Capybara::Poltergeist::Driver.new(app, timeout: 5)
9 9
 end
10 10
 
11 11
 Capybara.javascript_driver = :poltergeist
12
-Capybara.default_max_wait_time = 2
12
+Capybara.default_max_wait_time = 5
13 13
 
14 14
 RSpec.configure do |config|
15 15
   config.include Warden::Test::Helpers