1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-02 14:15:06 +01:00
metamask-extension/ui/components/app
Mark Stacey 1eecc59969 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-21 18:51:18 -02:30
..
account-list-item Fix account-list-item component for new Storybook format (#12893) 2021-12-07 09:45:04 -08:00
account-menu Setting search feature - Setting component UI updates #12761 (#12920) 2022-02-08 13:00:20 -03:30
advanced-gas-controls Alert users when the network is busy (#12268) 2022-01-07 12:18:02 -07:00
advanced-gas-fee-popover Fix: advance defaults should never be used for swaps (#13617) 2022-02-15 00:37: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 Removing EIP_1559_V2 feature flag (#13481) 2022-02-03 05:58:28 +05:30
connected-accounts-list Dark Mode Part 1: Switch to Using CSS Variables (#13147) 2022-01-06 11:35:49 -06:00
connected-accounts-permissions Fix v10.11: Unable to find value of key "eth_accounts" for locale "en" in Permissions Modal (#13833) 2022-03-04 13:40:58 -03:30
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-03-21 18:51:18 -02:30
currency-input Revert "Allow sending up to 15 decimals on the send screen (#12707)" (#13823) 2022-03-02 17:30:40 -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 EIP-1559 v2 - small fixes (#13392) 2022-01-26 23:48:43 +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 Fix v10.11: Unable to find value of key "eth_accounts" for locale "en" in Permissions Modal (#13833) 2022-03-04 13:40:58 -03:30
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 Ensure sign message button is only enabled on scroll (#13645) 2022-02-15 16:59:59 -07:00
signature-request-original Use pre-wrap instead of pre for signature content (#13828) 2022-03-11 11:34:11 -03:30
srp-input Improve unit tests for SrpInput component (#13803) 2022-03-21 18:51:18 -02:30
step-progress-bar Dark Mode Part 1: Switch to Using CSS Variables (#13147) 2022-01-06 11:35:49 -06:00
tab-bar [BUILD FIX #12920] Updated style for full screen mode in settings page (#13569) 2022-02-09 11:49:41 -06:00
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 14:28:31 -07: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 Move component into another folder (#13380) 2022-01-26 11:48:28 -06:00
user-preferenced-token-input remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
wallet-overview Enable buying MATIC on Polygon, BNB on BSC, AVAX on Avalanche, FTM on Fantom, CELO on Celo, and respective stablecoins on Transak (#13398) 2022-01-28 07:46:26 -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 Refactor: Extract SRP input from create vault component (#13720) 2022-03-21 18:51:18 -02:30
menu-droppo.js Remove legacy node parent detection (#12814) 2021-12-10 13:17:18 -06:00