Sha256: 89830f784953c143fe66f5d56bd75293723a5a03eb6d4ab2feaddc746f04aff0

Contents?: true

Size: 671 Bytes

Versions: 7

Compression:

Stored size: 671 Bytes

Contents

# frozen_string_literal: true

Capybara.server = :puma, { Silent: true }

args = %w[disable-dev-shm-usage no-sandbox disable-gpu window-size=1280,1024]
args << "lang=#{I18n.locale}"
args << 'headless' unless ENV['DEBUG']
capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
  chromeOptions: { args: args }
)

Capybara.register_driver :chrome do |app|
  Capybara::Selenium::Driver.new(
    app, browser: :chrome, desired_capabilities: capabilities
  )
end

Capybara.register_driver :selenium_remote do |app|
  Capybara::Selenium::Driver.new(
    app,
    browser: :remote,
    desired_capabilities: capabilities,
    url: 'http://selenium:4444/wd/hub'
  )
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spina-admin-conferences-blog-0.3.1 spec/support/capybara.rb
spina-admin-conferences-blog-0.2.0 spec/support/capybara.rb
spina-admin-conferences-blog-0.1.4 spec/support/capybara.rb
spina-admin-conferences-blog-0.1.3 spec/support/capybara.rb
spina-admin-conferences-blog-0.1.2 spec/support/capybara.rb
spina-admin-conferences-blog-0.1.1 spec/support/capybara.rb
spina-admin-conferences-blog-0.1.0 spec/support/capybara.rb