Sha256: 4402c4c1244b7ce59545de77b489fd2f301130fc8d49c43b9aa312e4d0c74687

Contents?: true

Size: 696 Bytes

Versions: 24

Compression:

Stored size: 696 Bytes

Contents

require 'capybara-screenshot/rspec'

Capybara.configure do |config|
  config.save_path = ENV['CIRCLE_ARTIFACTS'] if ENV['CIRCLE_ARTIFACTS']
  config.server = :puma
  config.default_driver = :rack_test
  config.javascript_driver = :selenium_chrome_headless
  config.default_max_wait_time = ENV.fetch('CAPYBARA_MAX_WAIT_TIME', 45).to_i
  config.always_include_port = true
  config.match = :smart
  config.ignore_hidden_elements = true
end

if ENV['WEBDRIVER'] == 'accessible'
  require 'capybara/accessible'
  Capybara.javascript_driver = :accessible
end

RSpec.configure do |config|
  config.before(:each, js: true) do
    Capybara.page.driver.browser.manage.window.resize_to(1400, 900)
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
spree_core-4.9.0 lib/spree/testing_support/capybara_config.rb
spree_core-4.8.3 lib/spree/testing_support/capybara_config.rb
spree_core-4.8.2 lib/spree/testing_support/capybara_config.rb
spree_core-4.7.3 lib/spree/testing_support/capybara_config.rb
spree_core-4.6.6 lib/spree/testing_support/capybara_config.rb
spree_core-4.5.5 lib/spree/testing_support/capybara_config.rb
spree_core-4.4.1 lib/spree/testing_support/capybara_config.rb
spree_core-4.5.4 lib/spree/testing_support/capybara_config.rb
spree_core-4.6.5 lib/spree/testing_support/capybara_config.rb
spree_core-4.7.2 lib/spree/testing_support/capybara_config.rb
spree_core-4.7.1 lib/spree/testing_support/capybara_config.rb
spree_core-4.6.4 lib/spree/testing_support/capybara_config.rb
spree_core-4.7.0 lib/spree/testing_support/capybara_config.rb
spree_core-4.6.3 lib/spree/testing_support/capybara_config.rb
spree_core-4.6.2 lib/spree/testing_support/capybara_config.rb
spree_core-4.6.1 lib/spree/testing_support/capybara_config.rb
spree_core-4.6.0 lib/spree/testing_support/capybara_config.rb
spree_core-4.5.3 lib/spree/testing_support/capybara_config.rb
spree_core-4.5.2 lib/spree/testing_support/capybara_config.rb
spree_core-4.5.1 lib/spree/testing_support/capybara_config.rb