Sha256: 23f41db18587f2c9e60a590658e6a036b04164259506847f9b94214fec476075

Contents?: true

Size: 658 Bytes

Versions: 12

Compression:

Stored size: 658 Bytes

Contents

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

RSpec.configure do
  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 --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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spree_cmd-3.7.14.1 lib/spree_cmd/templates/extension/spec/support/capybara.rb
spree_cmd-3.7.14 lib/spree_cmd/templates/extension/spec/support/capybara.rb
spree_cmd-3.7.13 lib/spree_cmd/templates/extension/spec/support/capybara.rb
spree_cmd-3.7.12 lib/spree_cmd/templates/extension/spec/support/capybara.rb
spree_cmd-3.7.11 lib/spree_cmd/templates/extension/spec/support/capybara.rb
spree_cmd-3.7.10 lib/spree_cmd/templates/extension/spec/support/capybara.rb
spree_cmd-3.7.9 lib/spree_cmd/templates/extension/spec/support/capybara.rb
spree_cmd-3.7.8 lib/spree_cmd/templates/extension/spec/support/capybara.rb
spree_cmd-3.7.7 lib/spree_cmd/templates/extension/spec/support/capybara.rb
spree_cmd-3.7.6 lib/spree_cmd/templates/extension/spec/support/capybara.rb
spree_cmd-3.7.5 lib/spree_cmd/templates/extension/spec/support/capybara.rb
spree_cmd-3.7.4 lib/spree_cmd/templates/extension/spec/support/capybara.rb