allow disabling gpu in tests (#26684)
This commit is contained in:
parent
364e02716f
commit
948f4bc6bb
|
@ -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'] } };
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue