stadtratmonitor/spec/support/capybara.rb

16 lines
391 B
Ruby
Raw Permalink Normal View History

2020-03-09 11:27:52 +01:00
# frozen_string_literal: true
require 'capybara/apparition'
Capybara.register_driver :apparition do |app|
2020-03-09 11:27:52 +01:00
Capybara::Apparition::Driver.new(
app,
headless: true,
browser_options: [:no_sandbox, disable_features: 'VizDisplayCompositor']
)
end
Capybara.javascript_driver = :apparition
# https://github.com/teamcapybara/capybara#setup
Capybara.server = :puma, { Silent: true }