DEV: Improve performance of system tests by disabling GPU in chrome ()

It seems like the overhead of GPU acceleration is not worth it and is
slowing down our system tests. Locally the following command completes
in `2 minutes 8.6 seconds` with GPU disabled as compared to `2 minutes 45.4 seconds` with GPU enabled.
This commit is contained in:
Alan Guo Xiang Tan 2023-06-01 17:59:20 +09:00 committed by GitHub
parent 30e4ebd19b
commit 128d67ba56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -650,6 +650,7 @@ def apply_base_chrome_options(options)
options.add_argument("--disable-dev-shm-usage")
options.add_argument("--mute-audio")
options.add_argument("--force-device-scale-factor=1")
options.add_argument("--disable-gpu")
end
class SpecSecureRandom