Merge pull request #8402 from denschub/cucumber-docker-fixes

Fix running Cucumber in Docker
This commit is contained in:
Benjamin Neff 2022-10-30 01:41:23 +02:00
commit 7e15d9ec8a
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -26,7 +26,11 @@ Capybara.server = :webrick
Capybara.register_driver :apparition do |app|
# Pass headless: false here if you need to see the browser
Capybara::Apparition::Driver.new(app, headless: true)
Capybara::Apparition::Driver.new(
app,
headless: true,
browser_options: %i[no_sandbox disable_setuid_sandbox disable_gpu]
)
end
Capybara.javascript_driver = :apparition