Skip to content

Commit e9e7b80

Browse files
committed
Prevent opening tab on install in e2e tests
1 parent dd3aecf commit e9e7b80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/scripts/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ const addAppInstalledEvent = () => {
12901290
function onInstall() {
12911291
log.debug('First install detected');
12921292
addAppInstalledEvent();
1293-
if (!process.env.METAMASK_DEBUG) {
1293+
if (!process.env.IN_TEST && !process.env.METAMASK_DEBUG) {
12941294
// If storeAlreadyExisted is true then this is a fresh installation
12951295
// and an app installed event should be tracked.
12961296
addAppInstalledEvent();

0 commit comments

Comments
 (0)