Sha256: 29bcd83e9ec42c8c62aecfe673d0a539447d25aa7278d14bae74d497e8a6b082

Contents?: true

Size: 913 Bytes

Versions: 38

Compression:

Stored size: 913 Bytes

Contents

require 'capybara-screenshot/rspec'

Capybara.save_path = ENV['CIRCLE_ARTIFACTS'] if ENV['CIRCLE_ARTIFACTS']

if ENV['WEBDRIVER'] == 'accessible'
  require 'capybara/accessible'
  Capybara.javascript_driver = :accessible
else
  Capybara.register_driver :chrome do |app|
    Selenium::WebDriver.logger.level = :error

    Capybara::Selenium::Driver.new app,
      browser: :chrome,
      options: Selenium::WebDriver::Chrome::Options.new(
        args: %w[no-sandbox disable-dev-shm-usage disable-popup-blocking headless disable-gpu window-size=1920,1080 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=VizDisplayCompositor],
        log_level: :error
      )
  end
  Capybara.javascript_driver = :chrome

  Capybara::Screenshot.register_driver(:chrome) do |driver, path|
    driver.browser.save_screenshot(path)
  end
end
Capybara.default_max_wait_time = 45
Capybara.server = :webrick

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
spree_core-4.0.9 lib/spree/testing_support/capybara_config.rb
spree_core-4.1.15 lib/spree/testing_support/capybara_config.rb
spree_core-4.1.14 lib/spree/testing_support/capybara_config.rb
spree_core-4.0.8 lib/spree/testing_support/capybara_config.rb
spree_core-4.1.13.1 lib/spree/testing_support/capybara_config.rb
spree_core-4.0.7.1 lib/spree/testing_support/capybara_config.rb
spree_core-4.0.7 lib/spree/testing_support/capybara_config.rb
spree_core-4.1.13 lib/spree/testing_support/capybara_config.rb
spree_core-4.0.6 lib/spree/testing_support/capybara_config.rb
spree_core-4.2.0.rc2 lib/spree/testing_support/capybara_config.rb
spree_core-4.0.5 lib/spree/testing_support/capybara_config.rb
spree_core-4.1.12 lib/spree/testing_support/capybara_config.rb
spree_core-4.2.0.rc1 lib/spree/testing_support/capybara_config.rb
spree_core-4.0.4 lib/spree/testing_support/capybara_config.rb
spree_core-4.1.11 lib/spree/testing_support/capybara_config.rb
spree_core-4.1.10 lib/spree/testing_support/capybara_config.rb
spree_core-4.2.0.beta lib/spree/testing_support/capybara_config.rb
spree_core-4.1.9 lib/spree/testing_support/capybara_config.rb
spree_core-4.1.8 lib/spree/testing_support/capybara_config.rb
spree_core-4.1.7 lib/spree/testing_support/capybara_config.rb