Sha256: 4402c4c1244b7ce59545de77b489fd2f301130fc8d49c43b9aa312e4d0c74687
Contents?: true
Size: 696 Bytes
Versions: 24
Compression:
Stored size: 696 Bytes
Contents
require 'capybara-screenshot/rspec' Capybara.configure do |config| config.save_path = ENV['CIRCLE_ARTIFACTS'] if ENV['CIRCLE_ARTIFACTS'] config.server = :puma config.default_driver = :rack_test config.javascript_driver = :selenium_chrome_headless config.default_max_wait_time = ENV.fetch('CAPYBARA_MAX_WAIT_TIME', 45).to_i config.always_include_port = true config.match = :smart config.ignore_hidden_elements = true end if ENV['WEBDRIVER'] == 'accessible' require 'capybara/accessible' Capybara.javascript_driver = :accessible end RSpec.configure do |config| config.before(:each, js: true) do Capybara.page.driver.browser.manage.window.resize_to(1400, 900) end end
Version data entries
24 entries across 24 versions & 1 rubygems