Skip to content

Commit c1fb51a

Browse files
committed
disable overlay for e2e tests
1 parent 3df807f commit c1fb51a

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

configs/webpack-config-compass/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,10 @@ export function createElectronRendererConfig(
276276
writeToDisk: true,
277277
},
278278
client: {
279-
overlay: {
280-
errors: true,
281-
warnings: false,
282-
},
279+
overlay:
280+
process.env.DISABLE_DEVSERVER_OVERLAY === 'true'
281+
? false
282+
: { warnings: false, errors: true, runtimeErrors: true },
283283
},
284284
https: false,
285285
hot: opts.hot,

packages/compass-e2e-tests/helpers/compass-web-sandbox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const debug = Debug('compass-e2e-tests:compass-web-sandbox');
1919
* with webdriver will get the values
2020
*/
2121
process.env.OPEN_BROWSER = 'false'; // tell webpack dev server not to open the default browser
22-
process.env.DISABLE_DEVSERVER_OVERLAY = 'false';
22+
process.env.DISABLE_DEVSERVER_OVERLAY = 'true';
2323
process.env.APP_ENV = 'webdriverio';
2424

2525
const wait = (ms: number) => {

packages/compass-e2e-tests/helpers/compass.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,7 @@ async function startCompassElectron(
645645
const maybeWrappedBinary = (await opts.wrapBinary?.(binary)) ?? binary;
646646

647647
process.env.APP_ENV = 'webdriverio';
648+
process.env.DISABLE_DEVSERVER_OVERLAY = 'true';
648649
// For webdriverio env we are changing appName so that keychain records do not
649650
// overlap with anything else. But leave it alone when testing auto-update.
650651
if (!process.env.HADRON_AUTO_UPDATE_ENDPOINT_OVERRIDE) {

0 commit comments

Comments
 (0)