Sha256: 4dced0a3dba0924b399e8fd159a1feef231e32667460c9218aa848c113885cfe
Contents?: true
Size: 666 Bytes
Versions: 1
Compression:
Stored size: 666 Bytes
Contents
# frozen_string_literal: true require "webdrivers" Capybara.register_driver :chrome do |app| Selenium::WebDriver.logger.level = :error options = Selenium::WebDriver::Chrome::Options.new( args: %w[headless no-sandbox disable-gpu window-size=1920,1080], log_level: :error ) Capybara::Selenium::Driver.new(app, browser: :chrome, options: options) end RSpec.configure do |config| config.before(:each, type: :feature) do Capybara.javascript_driver = :chrome end config.before(:each, type: :feature, js: true) do config.include Capybara::DSL Capybara.default_host = "http://www.example.com" Capybara.server = :webrick end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
archangel-0.4.0 | spec/support/selenium.rb |