Skip to content

Commit

Permalink
remove things we don't need
Browse files Browse the repository at this point in the history
  • Loading branch information
lerouxb committed Dec 11, 2024
1 parent 565dcac commit c787b1e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/compass-e2e-tests/helpers/compass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,7 @@ async function processCommonOpts({

// https://webdriver.io/docs/options/#webdriver-options
const webdriverOptions = {
//logLevel: 'warn' as const, // info is super verbose right now
logLevel: 'debug' as const,
logLevel: 'warn' as const, // info is super verbose right now
outputDir: webdriverLogPath,
};

Expand Down Expand Up @@ -638,17 +637,18 @@ async function startCompassElectron(
const options = {
automationProtocol: 'webdriver' as const,
capabilities: {
browserName: 'chrome',
browserName: 'chromium',
browserVersion: ELECTRON_CHROMIUM_VERSION,
// https://chromedriver.chromium.org/capabilities#h.p_ID_106
'goog:chromeOptions': {
binary: maybeWrappedBinary,
args: chromeArgs,
},
// from https://github.com/webdriverio-community/wdio-electron-service/blob/32457f60382cb4970c37c7f0a19f2907aaa32443/packages/wdio-electron-service/src/launcher.ts#L102
'wdio:enforceWebDriverClassic': true,
},
'wdio:chromedriverOptions': {
// TODO: enable logging
// TODO: enable logging so we don't have to debug things blindly
},
...webdriverOptions,
...wdioOptions,
Expand All @@ -662,7 +662,6 @@ async function startCompassElectron(
try {
browser = (await remote(options)) as CompassBrowser;
} catch (err) {
console.error(err);
debug('Failed to start remote webdriver session', {
error: (err as Error).stack,
});
Expand Down

0 comments on commit c787b1e

Please sign in to comment.