diff options
author | Stefan Wrobel <swrobel@users.noreply.github.com> | 2018-04-07 13:14:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-07 13:14:36 -0700 |
commit | bade485636ef9cf0ff0c194acc4083296a7f5c26 (patch) | |
tree | 5ad3ca4d90fe40ce0c47abc447fb3f40e53e5e64 /actionpack | |
parent | bba832d48a8bb3c4e262e707b18e3c7fadb5cf55 (diff) | |
download | rails-bade485636ef9cf0ff0c194acc4083296a7f5c26.tar.gz rails-bade485636ef9cf0ff0c194acc4083296a7f5c26.tar.bz2 rails-bade485636ef9cf0ff0c194acc4083296a7f5c26.zip |
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
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/system_testing/browser.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ module ActionDispatch 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 |