mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
parent
aa9a5e1dcd
commit
2167c5b161
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue