Skip to content

Commit

Permalink
Use new Chrome --headless=new option in testing
Browse files Browse the repository at this point in the history
  • Loading branch information
david-yz-liu committed Mar 3, 2024
1 parent 3830901 commit 0f9e788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
Capybara.register_driver :selenium_remote_chrome do |app|
chrome_options = Selenium::WebDriver::Chrome::Options.new(args: ['--no-sandbox', '--disable-gpu',
'--window-size=1400,1400'])
chrome_options.add_argument('--headless') unless ENV.fetch('DISABLE_HEADLESS_UI_TESTING', nil) == 'true'
chrome_options.add_argument('--headless=new') unless ENV.fetch('DISABLE_HEADLESS_UI_TESTING', nil) == 'true'
Capybara::Selenium::Driver.new(app, browser: :remote, url: 'http://localhost:9515', capabilities: [chrome_options])
end

Expand Down

0 comments on commit 0f9e788

Please sign in to comment.