mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-04-20 07:11:33 +02:00
Replace capybara-webkit with apparition and update capybara to 3.30.0
See https://github.com/teamcapybara/capybara#apparition
This commit is contained in:
parent
2050e1c46d
commit
5dad333655
5 changed files with 44 additions and 22 deletions
|
@ -1 +1,13 @@
|
|||
Capybara.javascript_driver = :webkit
|
||||
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 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue