1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00
metamask-extension/test/e2e/tests
Mark Stacey 594dde58b1 Add additional Sentry E2E tests (#20425)
* Reorganize Sentry error e2e tests

The tests have been reorganized into different describe blocks. Each
describe block is for either before or after initialization, and either
with or without opting into metrics.

This was done to simplify later test additions. The conditions for each
test are now in the describe block, letting us test additional things
in each of these conditions. The conditions were flattened to a single
level to avoid excessive indentation.

* Add error e2e test for background and UI errors

The Sentry e2e tests before initialization only tested background
errors, and the after initialization tests only tested UI errors. Now
both types of errors are tested in both scenarios.

* Add error e2e tests for Sentry error state

E2E tests have been added to test the state object sent along with each
Sentry error.

At the moment this object is empty in some circumstances, but this will
change in later PRs.

* Rename throw test error function

* Only setup debug/test state hooks in dev/test builds

The state hooks used for debugging and testing are now only included in
dev or test builds. The function name was updated and given a JSDoc
description to explain this more clearly as well.

* Add state snapshot assertions

State snapshot assertions have been added to the e2e error tests. These
snapshots will be very useful in reviewing a few PRs that will follow
this one.

We might decide to remove these snapshots after this set of Sentry
refactors, as they might be more work to maintain than they're worth.
But they will be useful at least in the short-term.

The login step has been removed from a few tests because it introduced
indeterminacy (the login process continued asynchronously after the
login, and sometimes was not finished when the error was triggered).

* Ensure login page has rendered during setup

This fixes an intermittent failure on Firefox

* Format snapshots with prettier before writing them

* Use defined set of date fields rather than infering from name

* Remove waits for error screen

The error screen only appears after a long timeout, and it doesn't
affect the next test steps at all.
2023-08-16 14:46:53 -02:30
..
phishing-controller Update @metamask/phishing-controller to v4.0.0 (#18840) 2023-07-31 17:55:48 -02:30
state-snapshots Add additional Sentry E2E tests (#20425) 2023-08-16 14:46:53 -02:30
account-details.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
add-account.spec.js Fix add-account e2e test (#19684) 2023-06-20 16:33:24 +01:00
add-custom-network.spec.js fix(e2e): flaky test-e2e-chrome on add-custom-network.spec.js (#19487) 2023-06-07 23:39:06 +05:30
add-hide-token.spec.js Upgrade assets-controllers to v9 (#19472) 2023-06-09 15:48:48 -05:00
address-book.spec.js UI updates for contacts Page (#19646) 2023-06-26 22:38:42 +05:30
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 15:45:51 -02:30
chain-interactions.spec.js Reduce e2e test flakiness (#19507) 2023-06-08 14:34:48 -02:30
clear-activity.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
contract-interactions.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
custom-rpc-history.spec.js Fix #19941 - Correctly show network name and selection when chainIds collide (#19947) 2023-07-14 05:54:02 -02:30
custom-token-add-approve.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
dapp-interactions.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05: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 chore: refactor connect to dapp action in e2e (#19015) 2023-05-05 14:56:08 +01:00
encrypt-decrypt.spec.js add e2e test decrypt and encrypt multiple messages (#19657) 2023-06-27 10:57:59 +01:00
ens.spec.js Send flow UI update (#19465) 2023-06-08 22:39:39 +05:30
errors.spec.js Add additional Sentry E2E tests (#20425) 2023-08-16 14:46:53 -02:30
eth-sign.spec.js Add e2e tests for queuing multiple signing operations (#19446) 2023-06-28 08:21:02 +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 chore: refactor connect to dapp action in e2e (#19015) 2023-05-05 14:56:08 +01:00
gas-estimates.spec.js Fix fallback gas estimation (#19746) 2023-06-26 16:13:16 -02:30
import-flow.spec.js feature(19496): eliminate flow e2e flakyness in terms of asserting content for DOM (#19600) 2023-06-15 11:01:44 +01:00
incremental-security.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
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 Send flow UI update (#19465) 2023-06-08 22:39:39 +05:30
metrics.spec.js Avoid resetting the mock server (#18661) 2023-04-19 15:36:23 +01:00
multiple-transactions.spec.js Add e2e tests for queuing multiple transactions (#19411) 2023-06-22 08:56:44 +01: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 Reduce e2e test flakiness (#19507) 2023-06-08 14:34:48 -02:30
permissions.spec.js Fix #20006 - Add Address Details and View on Explorer to Global Menu (#20013) 2023-07-26 17:42:34 -02:30
personal-sign.spec.js Add e2e tests for queuing multiple signing operations (#19446) 2023-06-28 08:21:02 +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 Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05: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 Removing flag for EIP1559 V2 support (#16446) 2022-12-09 00:07:06 +05:30
send-eth.spec.js feature(19625): eliminate e2e flakyness for add-account and send-eth (#19645) 2023-06-20 14:45:40 +01:00
send-hex-address.spec.js feature(19463): fix send-eth flaky test and refactor (#19531) 2023-06-09 15:01:12 +01: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 feat(srp): add a quiz to the SRP reveal (#19283) 2023-06-20 14:27:10 -04:00
signature-request.spec.js Add e2e tests for queuing multiple signing operations (#19446) 2023-06-28 08:21:02 +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 15:45:51 -02:30
stuck-approved-transaction.spec.js Call onbootcleanup at the end of the tx controller constructor (#16449) 2022-11-10 09:58:27 -03:30
switch-custom-network.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
terms-of-use.spec.js Terms of use e2e (#18861) 2023-04-28 14:37:06 +01:00
token-details.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00