Skip to content

Commit 00c5bd7

Browse files
committed
Setup auto-update when testing auto-update, even in CI.
1 parent 509606f commit 00c5bd7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,8 +636,10 @@ async function startCompassElectron(
636636

637637
process.env.APP_ENV = 'webdriverio';
638638
// For webdriverio env we are changing appName so that keychain records do not
639-
// overlap with anything else
640-
process.env.HADRON_PRODUCT_NAME_OVERRIDE = 'MongoDB Compass WebdriverIO';
639+
// overlap with anything else. But leave it alone when testing auto-update.
640+
if (!process.env.HADRON_AUTO_UPDATE_ENDPOINT_OVERRIDE) {
641+
process.env.HADRON_PRODUCT_NAME_OVERRIDE = 'MongoDB Compass WebdriverIO';
642+
}
641643

642644
// Guide cues might affect too many tests in a way where the auto showing of the cue prevents
643645
// clicks from working on elements. Dealing with this case-by-case is way too much work, so

packages/compass/src/main/application.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,7 @@ class CompassApplication {
160160

161161
await this.setupCORSBypass();
162162
void this.setupCompassAuthService();
163-
// TODO(COMPASS-7618): For now don't setup auto-update in CI because the
164-
// toasts will obscure other things which we don't expect yet.
165-
if (!process.env.CI) {
163+
if (!process.env.CI || process.env.HADRON_AUTO_UPDATE_ENDPOINT_OVERRIDE) {
166164
this.setupAutoUpdate();
167165
}
168166
await setupCSFLELibrary();

0 commit comments

Comments
 (0)