1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 20:05:27 +02:00
metamask-extension/ui/components/app
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
..
account-list-item Fix account-list-item component for new Storybook format (#12893) 2021-12-07 09:45:04 -08:00
account-menu add account_type and device_model to tx metrics (#13682) 2022-02-23 09:15:41 -06:00
add-network Create 'Add network' page (#13180) 2022-02-25 10:50:16 -06:00
advanced-gas-controls Alert users when the network is busy (#12268) 2022-01-07 12:18:02 -07:00
advanced-gas-fee-popover gas fee details displayed on UI should be used gas estimates if available (#13809) 2022-03-03 05:52:46 +05:30
alerts Dark Mode Part 1: Switch to Using CSS Variables (#13147) 2022-01-06 11:35:49 -06:00
app-header Dark Mode Part 1: Switch to Using CSS Variables (#13147) 2022-01-06 11:35:49 -06:00
app-loading-spinner EIP-1559 V2 UI/UX improvements (#13419) 2022-01-31 11:21:43 +05:30
asset-list Hiding refresh list on non-Mainnet networks (#12210) 2021-09-27 13:42:51 -04:00
asset-list-item Add modal with directions to re-add token as NFT (#13291) 2022-01-19 12:42:41 -06:00
cancel-button UX Papercuts Epic: Create a consistent representation of the Buttons (#12096) 2021-10-05 15:20:42 -04:00
cancel-speedup-popover Removing EIP_1559_V2 feature flag (#13481) 2022-02-03 05:58:28 +05:30
collectible-details More nft ux fixes (#13388) 2022-01-27 11:26:33 -06:00
collectible-options Dark Mode Part 1: Switch to Using CSS Variables (#13147) 2022-01-06 11:35:49 -06:00
collectibles-detection-notice Add modal with directions to re-add token as NFT (#13291) 2022-01-19 12:42:41 -06:00
collectibles-items Yet more NFT UX cleanups (#13435) 2022-01-31 12:56:49 -06:00
collectibles-tab Yet more NFT UX cleanups (#13435) 2022-01-31 12:56:49 -06:00
confirm-page-container create branching logic for different types of contract interactions for identifying the contract address (#13776) 2022-03-03 13:56:20 -06:00
connected-accounts-list Dark Mode Part 1: Switch to Using CSS Variables (#13147) 2022-01-06 11:35:49 -06:00
connected-accounts-permissions Dark Mode Part 1: Switch to Using CSS Variables (#13147) 2022-01-06 11:35:49 -06:00
connected-sites-list changed icon to button for connected-sites-list (#13476) 2022-01-31 15:33:35 -05:00
connected-status-indicator Dark Mode Part 1: Switch to Using CSS Variables (#13147) 2022-01-06 11:35:49 -06:00
contact-list Use ternary conditionals instead of && (#12406) 2021-10-21 11:11:31 -05:00
create-new-vault Refactor: Extract SRP input from create vault component (#13720) 2022-02-23 17:00:26 -03:30
currency-input Revert "Allow sending up to 15 decimals on the send screen (#12707)" (#13823) 2022-03-02 17:28:56 -07:00
dropdowns Remove bottom space when hiding testnet (#12821) 2022-01-05 13:04:34 -06:00
edit-gas-display Fix failing test:unit pipeline (#13387) 2022-01-25 18:21:42 -03:30
edit-gas-display-education Dark Mode Part 1: Switch to Using CSS Variables (#13147) 2022-01-06 11:35:49 -06:00
edit-gas-fee-button Removing EIP_1559_V2 feature flag (#13481) 2022-02-03 05:58:28 +05:30
edit-gas-fee-popover Fix: advance defaults should never be used for swaps (#13617) 2022-02-15 00:37:46 +05:30
edit-gas-popover Proper calculation of the gas limit (#12784) 2022-01-21 09:58:59 -06:00
flask Add Snaps via Flask (#13462) 2022-02-14 16:02:51 -08:00
gas-customization Dark Mode Part 1: Switch to Using CSS Variables (#13147) 2022-01-06 11:35:49 -06:00
gas-details-item gas fee details displayed on UI should be used gas estimates if available (#13809) 2022-03-03 05:52:46 +05:30
gas-timing UI fixes in EIP-1559 V2 screens (#13367) 2022-01-22 05:53:02 +05:30
home-notification Dark Mode Part 1: Switch to Using CSS Variables (#13147) 2022-01-06 11:35:49 -06:00
import-token-link Hiding refresh list on non-Mainnet networks (#12210) 2021-09-27 13:42:51 -04:00
info-box Dark Mode Part 1: Switch to Using CSS Variables (#13147) 2022-01-06 11:35:49 -06:00
ledger-instruction-field Check if ledger was successfully able to establish transport on confirm screen mount (#12535) 2021-11-04 15:49:53 -02:30
loading-network-screen UX Papercuts Epic: Create a consistent representation of the Buttons (#12096) 2021-10-05 15:20:42 -04:00
menu-bar Dark Mode Part 1: Switch to Using CSS Variables (#13147) 2022-01-06 11:35:49 -06:00
metamask-template-renderer Add TextArea to safe components list (#13468) 2022-01-31 10:41:07 -08:00
metamask-translation Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
modal Dark Mode Part 1: Switch to Using CSS Variables (#13147) 2022-01-06 11:35:49 -06:00
modals Created "Token details" page (#13216) 2022-02-16 13:29:39 -03:30
multilayer-fee-message Adds multilayer fee display to erc20 token approval screen (#12824) 2021-11-29 13:23:37 -03:30
multiple-notifications Fixed multiple-notifications css (#13469) 2022-01-31 09:09:21 -08:00
network-display Implement Network Switcher designs (#12260) 2021-10-28 23:31:05 +04:00
permission-page-container Add Snaps via Flask (#13462) 2022-02-14 16:02:51 -08:00
permissions-connect-footer added extension changes from snaps branch (#13433) 2022-01-28 12:39:32 -05:00
permissions-connect-header Add Snaps via Flask (#13462) 2022-02-14 16:02:51 -08:00
permissions-connect-permission-list Add Snaps via Flask (#13462) 2022-02-14 16:02:51 -08:00
qr-hardware-popover Remove dupe Prettier config from ESLint config (#13234) 2022-01-06 15:56:51 -07:00
recovery-phrase-reminder UX Papercuts Epic: Create a consistent representation of the Buttons (#12096) 2021-10-05 15:20:42 -04:00
selected-account Dark Mode Part 1: Switch to Using CSS Variables (#13147) 2022-01-06 11:35:49 -06:00
signature-request Shows the sign and cancel button fully in signature page (#13686) 2022-02-22 12:37:01 -03:30
signature-request-original Maintain leading whitespace in sig req window (#13340) 2022-01-24 08:06:40 -06:00
srp-input Improve unit tests for SrpInput component (#13803) 2022-03-03 19:38:03 -03:30
step-progress-bar Dark Mode Part 1: Switch to Using CSS Variables (#13147) 2022-01-06 11:35:49 -06:00
tab-bar Feat/settings search (#13214) 2022-02-22 17:28:21 -03:30
token-cell Dark Mode Part 1: Switch to Using CSS Variables (#13147) 2022-01-06 11:35:49 -06:00
token-list Integrate TokensController (#11552) 2021-09-10 12:37:19 -05:00
token-list-display Feat/hide 0 balances (#13306) 2022-02-02 12:32:16 +01:00
transaction-activity-log Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
transaction-breakdown Dark Mode Part 1: Switch to Using CSS Variables (#13147) 2022-01-06 11:35:49 -06:00
transaction-decoding Untranslated string fix (#13615) 2022-02-14 08:52:04 -07:00
transaction-detail Add support for Smart Transactions (#12676) 2022-02-18 17:48:38 +01:00
transaction-detail-item Feat/collectibles send flow (#13048) 2022-01-10 10:23:53 -06:00
transaction-icon Dark Mode Part 1: Switch to Using CSS Variables (#13147) 2022-01-06 11:35:49 -06:00
transaction-list Add support for Smart Transactions (#12676) 2022-02-18 17:48:38 +01:00
transaction-list-item Add support for Smart Transactions (#12676) 2022-02-18 17:48:38 +01:00
transaction-list-item-details Untranslated string fix (#13615) 2022-02-14 08:52:04 -07:00
transaction-status Small fixes for Swaps (#13732) 2022-02-23 22:10:28 +01:00
transaction-total-banner Organizing storybook to echo app folder structure (#12796) 2021-12-01 11:27:57 -08:00
user-preferenced-currency-display Update ESLint config to v8 (#12886) 2021-12-09 15:36:24 -03:30
user-preferenced-currency-input Fix currency toggle (#13813) 2022-03-02 18:57:46 +01:00
user-preferenced-token-input remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
wallet-overview Harden keyring type check in EthOverview (#13711) 2022-02-22 09:59:31 -06:00
whats-new-popup Dark Mode Part 1: Switch to Using CSS Variables (#13147) 2022-01-06 11:35:49 -06:00
app-components.scss Create 'Add network' page (#13180) 2022-02-25 10:50:16 -06:00
menu-droppo.js Remove legacy node parent detection (#12814) 2021-12-10 13:17:18 -06:00