mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 23:53:15 +01:00
15 lines
391 B
Ruby
15 lines
391 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'capybara/apparition'
|
|
Capybara.register_driver :apparition do |app|
|
|
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 }
|