Merge #2649 "Work around ChromeDriver/Chromium crash"
This commit is contained in:
commit
042fe17fdb
1 changed files with 3 additions and 5 deletions
|
|
@ -78,12 +78,10 @@ RSpec.configure do |config|
|
||||||
end
|
end
|
||||||
|
|
||||||
Capybara.register_driver :chrome_headless do |app|
|
Capybara.register_driver :chrome_headless do |app|
|
||||||
capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
|
options = Selenium::WebDriver::Chrome::Options.new(
|
||||||
chromeOptions: { args: %w(headless disable-gpu window-size=1920x1080 no-sandbox) }
|
args: %w(headless disable-gpu window-size=1920x1080 no-sandbox)
|
||||||
)
|
|
||||||
Capybara::Selenium::Driver.new(
|
|
||||||
app, browser: :chrome, desired_capabilities: capabilities
|
|
||||||
)
|
)
|
||||||
|
Capybara::Selenium::Driver.new(app, browser: :chrome, options: options)
|
||||||
end
|
end
|
||||||
|
|
||||||
Capybara.default_max_wait_time = 10 # seconds
|
Capybara.default_max_wait_time = 10 # seconds
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue