1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/test/e2e
Mark Stacey 20e16d41be
Improve Sentry state pre-initialization (#20491)
* Improve Sentry state pre-initialization

Previously the masked state snapshot sent to Sentry would be blank for
errors that occured during initialization. Instead we'll now include
some basic information in all cases, and a masked copy of the persisted
state if it happens after the first time the persisted state is read.

* Add test

* Fix crash when persisted state not yet fetched

* Add descriptions for initial state hooks

* Update comments to reflect recent changes

* Re-order imports to follow conventions

* Move initial state hooks back to module-level

The initial state hooks are now setup at the top-level of their module.
This ensures that they're setup prior to later imports. Calling a
function to setup these hooks in the entrypoint module wouldn't
accomplish this even if it was run "before" the imports because ES6
imports always get hoisted to the top of the file.

The `localStore` instance wasn't available statically, so a new state
hook was introduced for retrieving the most recent retrieved persisted
state.

* Fix error e2e tests
2023-08-17 09:29:05 -02:30
..
import-utc-json
json-rpc JSON-RPC e2e test POC (#18213) 2023-07-28 14:59:12 +01:00
metrics uses the asertInAnyOrder helper to fix flaky test cases (#20366) 2023-08-03 19:02:04 +01:00
mock-page-with-disallowed-iframe
mock-page-with-iframe
mv3 Update @metamask/phishing-controller to v4.0.0 (#18840) 2023-07-31 10:18:48 -02:30
mv3-perf-stats
nft UX: Remove the 'Source' and 'Link' URLs from NFT detail (#20248) 2023-08-04 13:28:34 -05:00
restore
seeder Extend wallet_watchAsset to support ERC721 and ERC1155 tokens (#19454) 2023-06-15 15:18:12 -05:00
send-eth-with-private-key-test
snaps [FLASK] Create new E2E test for snaps lifecycle-hooks (#20352) 2023-08-16 11:18:41 +02:00
swaps Improvements to Swaps quote auto-selection logic, fix and edge case with zero-balance tokens (#20388) 2023-08-03 18:19:50 -02:30
tests Improve Sentry state pre-initialization (#20491) 2023-08-17 09:29:05 -02:30
webdriver Fix snaps E2Es to be compatible with new monorepo-based test-snaps (#20005) 2023-07-21 23:32:51 +02:00
.mocharc.js
benchmark.js
e2e-mocha-setup.js
e2e-process-report.js
fixture-builder.js adapt to use networksMetadata state instead of single networkStatus and networksDetails state (#20219) 2023-08-03 12:31:35 -05:00
fixture-server.js
ganache.js
helpers.js Replaced ActionableMessage component in srp-input (#20111) 2023-08-04 08:42:28 -07:00
helpers.test.js feat: implement swap event metric e2e test (#20129) 2023-07-28 19:57:06 +01:00
lavamoat-stats.js
metamask-ui.spec.js Fix #19829: UX: Multichain: Move "Import Tokens" to Modal (#19553) 2023-08-14 11:08:59 -05:00
mock-e2e.js Update @metamask/phishing-controller to v4.0.0 (#18840) 2023-07-31 10:18:48 -02:30
mv3-stats.js
phishing-warning-page-server.js
run-all.js Update @metamask/phishing-controller to v4.0.0 (#18840) 2023-07-31 10:18:48 -02:30
run-e2e-test.js Add --retry-until-failure flag to e2e test script (#19532) 2023-07-10 17:10:13 -02:30
user-actions-benchmark.js Fix #19609 - Prevent rounded corners in account menu (#19615) 2023-06-20 08:38:24 -05:00