merge master
This commit is contained in:
commit
2892a56a1c
12 changed files with 70 additions and 70 deletions
|
|
@ -73,9 +73,11 @@ RSpec.configure do |config|
|
|||
end
|
||||
|
||||
Capybara.register_driver :chrome_headless do |app|
|
||||
options = Selenium::WebDriver::Chrome::Options.new(
|
||||
args: %w(headless disable-gpu window-size=1920x1080 no-sandbox)
|
||||
)
|
||||
options = ::Selenium::WebDriver::Chrome::Options.new
|
||||
options.args << '--window-size=1920x1080'
|
||||
options.args << '--headless'
|
||||
options.args << '--no-sandbox'
|
||||
options.args << '--disable-gpu'
|
||||
Capybara::Selenium::Driver.new(app, browser: :chrome, options: options)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue