1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 20:05:27 +02:00
metamask-extension/ui
Mark Stacey 68f42a2fb9
Improve unit tests for SrpInput component (#13803)
The library `@testing-library/user-event` has been updated to the
latest beta version, so that our unit tests better model real user
interactions. In particular, I found that previously the `paste` event
was missing the `clipboardData` API, so it was impossible to implement
any custom handling of paste events (which we will need in later PRs).

See the `v14.0.0-beta.1` release notes for a list of all breaking
changes [1]. The main change is that all methods now return Promises.
The `paste` method has also been dramatically simplified.

The unit tests have also been updated to reset all mocks before each
test. These tests don't have any shared mocks, but this is generally a
good practice, to ensure that tests don't develop accidental inter-
dependencies.

[1]: https://github.com/testing-library/user-event/releases/tag/v14.0.0-beta.1
2022-03-03 19:38:03 -03:30
..
__mocks__ Increase Jest unit test coverage for the Swaps feature to ~60% (#11343) 2021-07-02 08:48:34 -05:00
components Improve unit tests for SrpInput component (#13803) 2022-03-03 19:38:03 -03:30
contexts Adding metrics events for EIP-1559 V2 flow (#13329) 2022-02-01 23:23:03 +05:30
css Feat/13662 box design token updates (#13725) 2022-03-01 10:23:20 -08:00
ducks Fix currency toggle (#13813) 2022-03-02 18:57:46 +01:00
helpers Persisting token address via URL (Token Details page) (#13807) 2022-03-02 09:01:53 -07:00
hooks gas fee details displayed on UI should be used gas estimates if available (#13809) 2022-03-03 05:52:46 +05:30
pages create branching logic for different types of contract interactions for identifying the contract address (#13776) 2022-03-03 13:56:20 -06:00
selectors Add support for Smart Transactions (#12676) 2022-02-18 17:48:38 +01:00
store Fix currency toggle (#13813) 2022-03-02 18:57:46 +01:00
index.js Include transactions from all networks in state logs (#13599) 2022-02-14 13:29:24 -05:00