Skip to content

Commit ba18647

Browse files
Revert "Update UI state snapshot"
This reverts commit 6c29eeb.
1 parent ab69faf commit ba18647

File tree

2 files changed

+60
-58
lines changed

2 files changed

+60
-58
lines changed

test/e2e/tests/metrics/errors.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ async function matchesSnapshot({
145145
update?: boolean;
146146
}): Promise<void> {
147147
const snapshotPath = resolve(__dirname, `./state-snapshots/${snapshot}.json`);
148+
console.log('snapshotPath', snapshotPath);
148149
const rawSnapshotData = await fs.readFile(snapshotPath, {
149150
encoding: 'utf-8',
150151
});
Lines changed: 59 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,63 @@
11
{
22
"data": {
3-
"AccountOrderController": {
4-
"hiddenAccountList": {},
5-
"pinnedAccountList": {}
3+
"AuthenticationController": { "isSignedIn": "boolean" },
4+
"NotificationServicesController": {
5+
"subscriptionAccountsSeen": "object",
6+
"isFeatureAnnouncementsEnabled": "boolean",
7+
"isNotificationServicesEnabled": "boolean",
8+
"isMetamaskNotificationsFeatureSeen": "boolean",
9+
"metamaskNotificationsList": "object",
10+
"metamaskNotificationsReadList": "object"
611
},
712
"AccountsController": {
8-
"internalAccounts": { "accounts": "object", "selectedAccount": "string" }
13+
"internalAccounts": { "selectedAccount": "string", "accounts": "object" }
914
},
1015
"AlertController": {
1116
"alertEnabledness": { "unconnectedAccount": true, "web3ShimUsage": true },
1217
"unconnectedAccountAlertShownOrigins": "object",
1318
"web3ShimUsageOrigins": "object"
1419
},
1520
"AnnouncementController": { "announcements": "object" },
21+
"NetworkOrderController": {
22+
"orderedNetworkList": {
23+
"0": "object",
24+
"1": "object",
25+
"2": "object"
26+
}
27+
},
28+
"NetworkEnablementController": {
29+
"enabledNetworkMap": { "eip155": "object", "solana": "object" }
30+
},
31+
"AccountOrderController": {
32+
"pinnedAccountList": {},
33+
"hiddenAccountList": {}
34+
},
1635
"AppStateController": {
17-
"appActiveTab": "object",
1836
"browserEnvironment": {},
37+
"nftsDropdownState": {},
1938
"connectedStatusPopoverHasBeenShown": true,
39+
"termsOfUseLastAgreed": "number",
2040
"defaultHomeActiveTabName": null,
2141
"fullScreenGasPollTokens": "object",
22-
"hadAdvancedGasFeesSetPriorToMigration92_3": false,
23-
"hasShownMultichainAccountsIntroModal": "boolean",
24-
"isRampCardClosed": false,
25-
"newPrivacyPolicyToastClickedOrClosed": "boolean",
26-
"newPrivacyPolicyToastShownDate": "number",
27-
"nftsDropdownState": {},
2842
"notificationGasPollTokens": "object",
29-
"pendingShieldCohort": null,
30-
"pendingShieldCohortTxType": null,
3143
"popupGasPollTokens": "object",
3244
"recoveryPhraseReminderHasBeenShown": true,
3345
"recoveryPhraseReminderLastShown": "number",
34-
"showShieldEntryModalOnce": "boolean",
3546
"showTestnetMessageInDropdown": true,
47+
"trezorModel": null,
48+
"isRampCardClosed": false,
49+
"newPrivacyPolicyToastClickedOrClosed": "boolean",
50+
"newPrivacyPolicyToastShownDate": "number",
3651
"snapsInstallPrivacyWarningShown": true,
37-
"termsOfUseLastAgreed": "number",
38-
"trezorModel": null
52+
"hasShownMultichainAccountsIntroModal": "boolean",
53+
"showShieldEntryModalOnce": "boolean",
54+
"pendingShieldCohort": null,
55+
"pendingShieldCohortTxType": null,
56+
"appActiveTab": "object"
3957
},
40-
"AuthenticationController": { "isSignedIn": "boolean" },
4158
"BridgeController": {},
4259
"CurrencyController": {
60+
"currentCurrency": "usd",
4361
"currencyRates": {
4462
"ETH": {
4563
"conversionDate": "number",
@@ -51,8 +69,7 @@
5169
"conversionRate": 0.2,
5270
"usdConversionRate": 0.2
5371
}
54-
},
55-
"currentCurrency": "usd"
72+
}
5673
},
5774
"GasFeeController": {
5875
"estimatedGasFeeTimeBounds": {},
@@ -61,40 +78,25 @@
6178
},
6279
"KeyringController": { "vault": "string" },
6380
"MetaMetricsController": {
64-
"dataCollectionForMarketing": "boolean",
6581
"eventsBeforeMetricsOptIn": "object",
82+
"tracesBeforeMetricsOptIn": "object",
6683
"fragments": "object",
6784
"metaMetricsId": "0x86bacb9b2bf9a7e8d2b147eadb95ac9aaa26842327cd24afc8bd4b3c1d136420",
6885
"participateInMetaMetrics": true,
69-
"tracesBeforeMetricsOptIn": "object",
86+
"dataCollectionForMarketing": "boolean",
7087
"traits": "object"
7188
},
7289
"MetaMetricsDataDeletionController": {
7390
"metaMetricsDataDeletionId": null,
7491
"metaMetricsDataDeletionTimestamp": 0
7592
},
76-
"MultichainAccountService": "object",
77-
"NameController": { "names": "object" },
7893
"NetworkController": {
79-
"networkConfigurationsByChainId": "object",
94+
"selectedNetworkClientId": "string",
95+
"networkConfigurations": "object",
8096
"networksMetadata": {
81-
"networkConfigurationId": { "EIPS": {}, "status": "unknown" }
97+
"networkConfigurationId": { "EIPS": {}, "status": "available" }
8298
},
83-
"selectedNetworkClientId": "string"
84-
},
85-
"NetworkEnablementController": {
86-
"enabledNetworkMap": { "eip155": "object", "solana": "object" }
87-
},
88-
"NetworkOrderController": {
89-
"orderedNetworkList": { "0": "object", "1": "object", "2": "object" }
90-
},
91-
"NotificationServicesController": {
92-
"isFeatureAnnouncementsEnabled": "boolean",
93-
"isMetamaskNotificationsFeatureSeen": "boolean",
94-
"isNotificationServicesEnabled": "boolean",
95-
"metamaskNotificationsList": "object",
96-
"metamaskNotificationsReadList": "object",
97-
"subscriptionAccountsSeen": "object"
99+
"providerConfig": "object"
98100
},
99101
"OnboardingController": {
100102
"completedOnboarding": true,
@@ -104,44 +106,43 @@
104106
},
105107
"PermissionController": { "subjects": "object" },
106108
"PreferencesController": {
107-
"advancedGasFee": {},
109+
"advancedGasFee": null,
108110
"currentLocale": "en",
111+
"useExternalServices": "boolean",
109112
"dismissSeedBackUpReminder": true,
113+
"overrideContentSecurityPolicyHeader": true,
110114
"featureFlags": {},
111115
"forgottenPassword": false,
112116
"identities": "object",
113117
"ipfsGateway": "string",
114-
"isMultiAccountBalancesEnabled": "boolean",
115118
"knownMethodData": "object",
116119
"ledgerTransportType": "webhid",
117120
"lostIdentities": "object",
118121
"openSeaEnabled": false,
119-
"overrideContentSecurityPolicyHeader": true,
120122
"preferences": {
121123
"hideZeroBalanceTokens": false,
122-
"shouldShowAggregatedBalancePopover": "boolean",
123124
"showExtensionInFullSizeView": false,
124125
"showFiatInTestnets": false,
125-
"showMultiRpcModal": "boolean",
126-
"showNativeTokenAsMainBalance": true,
127126
"showTestNetworks": false,
128-
"smartAccountOptIn": "boolean",
129-
"smartTransactionsMigrationApplied": "boolean",
130127
"smartTransactionsOptInStatus": true,
131-
"tokenNetworkFilter": {},
132-
"tokenSortConfig": "object"
128+
"showNativeTokenAsMainBalance": true,
129+
"petnamesEnabled": "boolean",
130+
"showMultiRpcModal": "boolean",
131+
"showConfirmationAdvancedDetails": false,
132+
"tokenSortConfig": "object",
133+
"shouldShowAggregatedBalancePopover": "boolean",
134+
"tokenNetworkFilter": {}
133135
},
134-
"referrals": "object",
135-
"securityAlertsEnabled": "boolean",
136136
"selectedAddress": "string",
137137
"theme": "light",
138138
"useBlockie": false,
139-
"useCurrencyRateCheck": true,
140-
"useExternalServices": "boolean",
141-
"useMultiAccountBalanceChecker": true,
142139
"useNftDetection": false,
143140
"usePhishDetect": true,
144-
"useTokenDetection": true
141+
"useTokenDetection": false,
142+
"useCurrencyRateCheck": true,
143+
"useMultiAccountBalanceChecker": true,
144+
"isMultiAccountBalancesEnabled": "boolean",
145+
"referrals": "object"
145146
},
146147
"SelectedNetworkController": { "domains": "object" },
147148
"SmartTransactionsController": {
@@ -159,10 +160,10 @@
159160
"allIgnoredTokens": {},
160161
"allTokens": {}
161162
},
163+
"MultichainAccountService": "object",
162164
"TransactionController": { "transactions": "object" },
163-
"UserStorageController": { "isBackupAndSyncEnabled": true },
164165
"config": "object",
165166
"firstTimeInfo": "object"
166167
},
167-
"meta": { "version": 183 }
168+
"meta": { "version": 74 }
168169
}

0 commit comments

Comments
 (0)