Skip to content

Commit

Permalink
allow disabling gpu in tests (#26684)
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar authored and chrisronline committed Dec 12, 2018
1 parent 311a8bf commit 5f9f8d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/functional/services/remote/leadfoot_command.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'] } };
}
Expand Down

0 comments on commit 5f9f8d9

Please sign in to comment.