Skip to content

Commit

Permalink
Update default browser for tests (#1245)
Browse files Browse the repository at this point in the history
* Updating default browser for tests

* Fixing browser flags
  • Loading branch information
ahmad-shahid authored Sep 19, 2024
1 parent 0d830e2 commit f6ac4be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wdio.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ if (!process.env.DISABLE_PROXY) { //just a cheap way to disable this proxy setup
}

// targetBrowser can be 'firefox', 'chrome' or 'MicrosoftEdge'
const targetBrowser = process.env.TEST_BROWSER_NAME || 'firefox'; //NOTE: we could instead always test with both by adding a second "capabilities" below
// switching to Chrome as default browser due to a broken Firefox update
const targetBrowser = process.env.TEST_BROWSER_NAME || 'chrome'; //NOTE: we could instead always test with both by adding a second "capabilities" below
// const drivers = {
// chrome: { version: '119.0.6045.105' }, //https://chromedriver.chromium.org/
// firefox: { version: '0.33.0' }, //https://github.com/mozilla/geckodriver/releases
Expand Down Expand Up @@ -81,7 +82,7 @@ exports.config = {
'goog:chromeOptions': {
// to run chrome headless the following flags are required
// (see https://developers.google.com/web/updates/2017/04/headless-chrome)
args: ['--start-maximized'], //['--headless', '--disable-gpu'],
args: ['--start-maximized', '--headless', '--disable-gpu'],
},

acceptInsecureCerts: true,
Expand Down

0 comments on commit f6ac4be

Please sign in to comment.