Sha256: 3c5c56fb801b1d2fd23394a18fe74181158d2477b0d51bb398cb6cbdd0fa5166

Contents?: true

Size: 632 Bytes

Versions: 2

Compression:

Stored size: 632 Bytes

Contents

require 'capybara/rspec'
require 'capybara-screenshot'
require 'capybara-screenshot/rspec'
require 'capybara/rails'
require 'selenium/webdriver'

RSpec.configure do
  Capybara.server = :puma

  Capybara.register_driver :chrome do |app|
    Capybara::Selenium::Driver.new app,
                                   browser: :chrome,
                                   options: Selenium::WebDriver::Chrome::Options.new(args: %w[headless disable-gpu window-size=1920,1080])
  end

  Capybara.javascript_driver = :chrome

  Capybara::Screenshot.register_driver(:chrome) do |driver, path|
    driver.browser.save_screenshot(path)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_avatax_official-1.8.0 spec/support/capybara.rb
spree_avatax_official-1.7.1 spec/support/capybara.rb