From bade485636ef9cf0ff0c194acc4083296a7f5c26 Mon Sep 17 00:00:00 2001 From: Stefan Wrobel Date: Sat, 7 Apr 2018 13:14:36 -0700 Subject: [PATCH] Only disable headless chrome gpu on Windows Per Chromium team this has not been necessary on other platforms for quite some time: https://bugs.chromium.org/p/chromium/issues/detail?id=737678#c1 --- actionpack/lib/action_dispatch/system_testing/browser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actionpack/lib/action_dispatch/system_testing/browser.rb b/actionpack/lib/action_dispatch/system_testing/browser.rb index 10e6888ab3..1b0bce6b9e 100644 --- a/actionpack/lib/action_dispatch/system_testing/browser.rb +++ b/actionpack/lib/action_dispatch/system_testing/browser.rb @@ -33,7 +33,7 @@ def options def headless_chrome_browser_options options = Selenium::WebDriver::Chrome::Options.new options.args << "--headless" - options.args << "--disable-gpu" + options.args << "--disable-gpu" if Gem.win_platform? options end -- GitLab