Sha256: 4f55fc8ffc530e4061f7d5ea399ef5ef222fca9c08abf4a7e9b0ccc37e0b5070
Contents?: true
Size: 860 Bytes
Versions: 2
Compression:
Stored size: 860 Bytes
Contents
require 'capybara/rspec' require 'capybara-screenshot' require 'capybara-screenshot/rspec' require 'capybara/rails' require 'selenium-webdriver' require 'capybara-select-2' RSpec.configure do |config| 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 config.include CapybaraSelect2 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_dev_tools-0.1.2 | lib/spree_dev_tools/rspec/support/capybara.rb |
spree_dev_tools-0.1.1 | lib/spree_dev_tools/rspec/support/capybara.rb |