1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/test/e2e/tests
Dan J Miller ca1ddeb59b
Fix and test log.info calls run for each migration (#20517)
* Fix and test log.info calls run for each migration

In migrator/index.js, log.info is called before an after each migration.
These calls are intended to produce breadcrumbs to be captured by sentry
in cases where errors happen during or shortly after migrations are run.
These calls were not causing any output to the console because the log.setLevel
calls in ui/index.js were setting a 'warn value in local storage that was being
used by logLevel in the background.

This commit fixes the problem by setting the `persist` param of setLevel to
false, so that the background no longer reads the ui's log level.

Tests are added to verify that these logs are captured in sentry breadcrumbs
when there is a migration error due to an invariant state.

* Improve breadcrumb message matching

The test modified in this commit asserts eqaulity of  messages from breadcrumbs
and hard coded expected results. This could cause failures, as sometimes the
messages contain whitespace characters. This commit ensures the assertions only
check that the expected string is within the message string, ignoring extra
characters.
2023-08-18 11:15:45 -02:30
..
phishing-controller Update @metamask/phishing-controller to v4.0.0 (#18840) 2023-07-31 10:18:48 -02:30
state-snapshots Initialize composable observable store after update (#20468) 2023-08-17 12:22:37 -02:30
4byte-directory.spec.js Add Opt-out Settings toggle for 4byte contract method names resolution (#20098) 2023-08-04 13:28:37 -04:00
account-details.spec.js Improve Account Details E2E tests (#20183) 2023-07-27 09:22:13 -05:00
account-token-list.spec.js UX Multichain: Fixed fiat and eth value in Account List Menu (#20334) 2023-08-04 13:29:23 -04:00
add-account.spec.js Fix add-account e2e test (#19684) 2023-06-20 16:33:24 +01:00
add-custom-network.spec.js Updating network list item hover (#20063) 2023-07-19 10:12:24 -07:00
add-hide-token.spec.js Fix #19829: UX: Multichain: Move "Import Tokens" to Modal (#19553) 2023-08-14 11:08:59 -05:00
address-book.spec.js Multichain Activity Screen (#19557) 2023-07-17 13:48:15 -04:00
advanced-settings.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
auto-lock.spec.js Fix autolock field to accept decimals in Firefox (#19653) 2023-06-22 10:29:24 -06:00
backup-restore.spec.js Add improved downloading logic when exporting state logs (#19872) 2023-07-27 13:33:36 -04:00
chain-interactions.spec.js Updating network list item hover (#20063) 2023-07-19 10:12:24 -07:00
clear-activity.spec.js Multichain Activity Screen (#19557) 2023-07-17 13:48:15 -04:00
contract-interactions.spec.js Multichain Activity Screen (#19557) 2023-07-17 13:48:15 -04:00
custom-rpc-history.spec.js Updating network list item hover (#20063) 2023-07-19 10:12:24 -07:00
custom-token-add-approve.spec.js Fix #19829: UX: Multichain: Move "Import Tokens" to Modal (#19553) 2023-08-14 11:08:59 -05:00
dapp-interactions.spec.js feat(19726): fix flaky test in Dapp interactions caused by home-container rerender (#19997) 2023-07-13 13:02:06 +01:00
dapp-tx-edit.spec.js chore: refactor connect to dapp action in e2e (#19015) 2023-05-05 14:56:08 +01:00
edit-gas-fee.spec.js Multichain Activity Screen (#19557) 2023-07-17 13:48:15 -04:00
encrypt-decrypt.spec.js feature(19457): fix encrypt-decrypt.spec.js flaky tests (#19725) 2023-07-04 18:36:51 +01:00
ens.spec.js Send flow UI update (#19465) 2023-06-08 22:39:39 +05:30
errors.spec.js Fix and test log.info calls run for each migration (#20517) 2023-08-18 11:15:45 -02:30
eth-sign.spec.js Signature-Request refactor (#19104) 2023-07-20 18:51:38 +01:00
eth-subscribe.spec.js chore: refactor connect to dapp action in e2e (#19015) 2023-05-05 14:56:08 +01:00
failing-contract.spec.js Multichain Activity Screen (#19557) 2023-07-17 13:48:15 -04:00
gas-estimates.spec.js Use legacy gas API for BSC (#19763) 2023-07-10 14:09:39 -02:30
import-flow.spec.js Updating network list item hover (#20063) 2023-07-19 10:12:24 -07:00
import-tokens.spec.js Fix #19829: UX: Multichain: Move "Import Tokens" to Modal (#19553) 2023-08-14 11:08:59 -05:00
incremental-security.spec.js UX: Multichain: Convert AccountDetails Popover to Modal (#19811) 2023-07-05 18:27:02 +05:30
ipfs-ens-resolution.spec.js Fix ipfs-ens-resolution.spec.js E2E intermittent failure (#20311) 2023-08-01 13:26:42 -05:00
ipfs-toggle.spec.js Added e2e test for ipfs toggle (#20360) 2023-08-03 14:52:52 +05:30
localization.spec.js E2e test fixtures (#16061) 2022-10-28 09:42:12 +01:00
lock-account.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
lockdown.spec.js E2e test fixtures (#16061) 2022-10-28 09:42:12 +01:00
metamask-responsive-ui.spec.js Multichain Activity Screen (#19557) 2023-07-17 13:48:15 -04:00
multiple-transactions.spec.js Multichain Activity Screen (#19557) 2023-07-17 13:48:15 -04:00
navigate-transactions.spec.js feature(17901): fix address-book Sends to an address book entry e2e against MV3 build (#19330) 2023-05-30 13:44:56 +01:00
network-error.spec.js Update @metamask/gas-fee-controller to v6 (#19366) 2023-06-13 12:13:13 -02:30
onboarding.spec.js update isElementPresent usages (#20112) 2023-07-20 15:22:29 +01:00
permissions.spec.js Fix #20006 - Add Address Details and View on Explorer to Global Menu (#20013) 2023-07-18 17:01:07 -05:00
personal-sign.spec.js Signature-Request refactor (#19104) 2023-07-20 18:51:38 +01:00
portfolio-site.spec.js removed portfolio link from wallet view (#19716) 2023-06-23 17:28:41 +05:30
provider-api.spec.js Updating network list item hover (#20063) 2023-07-19 10:12:24 -07:00
security-provider.spec.js chore: refactor connect to dapp action in e2e (#19015) 2023-05-05 14:56:08 +01:00
send-edit.spec.js Multichain Activity Screen (#19557) 2023-07-17 13:48:15 -04:00
send-eth.spec.js Multichain Activity Screen (#19557) 2023-07-17 13:48:15 -04:00
send-hex-address.spec.js Multichain Activity Screen (#19557) 2023-07-17 13:48:15 -04:00
send-to-contract.spec.js Send flow UI update (#19465) 2023-06-08 22:39:39 +05:30
settings-general.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
settings-search.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
settings-security-reveal-srp.spec.js update isElementPresent usages (#20112) 2023-07-20 15:22:29 +01:00
signature-request.spec.js Signature-Request refactor (#19104) 2023-07-20 18:51:38 +01:00
signin-with-ethereum.spec.js chore: refactor connect to dapp action in e2e (#19015) 2023-05-05 14:56:08 +01:00
simple-send.spec.js feature(19463): fix send-eth flaky test and refactor (#19531) 2023-06-09 15:01:12 +01:00
state-logs.spec.js Add improved downloading logic when exporting state logs (#19872) 2023-07-27 13:33:36 -04:00
stuck-approved-transaction.spec.js Multichain Activity Screen (#19557) 2023-07-17 13:48:15 -04:00
switch-custom-network.spec.js Approval flow adding success and error pages (#19778) 2023-07-12 09:29:54 +01:00
terms-of-use.spec.js Terms of use e2e (#18861) 2023-04-28 14:37:06 +01:00
token-details.spec.js Fix #19829: UX: Multichain: Move "Import Tokens" to Modal (#19553) 2023-08-14 11:08:59 -05:00