walter/test/application_system_test_case.rb
Jonathan Abbett feb71e47a7 Update: Upgrade to Rails 5.1 to fix security vulnerabilities
Update: Added system tests
Update: More specific cookie names to avoid inter-app collisions
2019-03-26 19:40:28 -04:00

21 lines
497 B
Ruby

require "test_helper"
require "webdrivers"
Capybara.server = :webrick
Capybara.register_driver(:headless_chrome) do |app|
capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
chromeOptions: { args: %w[headless disable-gpu] }
)
Capybara::Selenium::Driver.new(
app,
browser: :chrome,
desired_capabilities: capabilities
)
end
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium, using: :chrome, screen_size: [1400, 1400]
end