From 2167c5b161afc43fffe55559be8858cef52ff998 Mon Sep 17 00:00:00 2001 From: Peter Pisljar Date: Mon, 10 Dec 2018 09:14:30 +0100 Subject: [PATCH] allow disabling gpu in tests (#26684) (#26869) --- test/functional/services/remote/leadfoot_command.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/functional/services/remote/leadfoot_command.js b/test/functional/services/remote/leadfoot_command.js index 34c0ba1fa8801..748cea2746b6f 100644 --- a/test/functional/services/remote/leadfoot_command.js +++ b/test/functional/services/remote/leadfoot_command.js @@ -32,6 +32,9 @@ async function attemptToCreateCommand(log, server, driverApi) { log.debug('[leadfoot:command] Creating session'); let browserOptions = {}; + if (process.env.TEST_DISABLE_GPU) { + browserOptions = { chromeOptions: { args: ['disable-gpu'] } }; + } if (process.env.TEST_BROWSER_HEADLESS) { browserOptions = { chromeOptions: { args: ['headless', 'disable-gpu'] } }; }