From 4b2c777862c0455a0f62a6239ca7056b609fd46d Mon Sep 17 00:00:00 2001 From: Ujwal Kumar Date: Wed, 26 Jul 2023 21:18:31 +0530 Subject: [PATCH] Replacing deprecated components and code for import tokens (#19559) Co-authored-by: georgewrmarshall --- test/e2e/swaps/swaps-notifications.spec.js | 2 +- .../__snapshots__/modal-content.test.tsx.snap | 4 +- .../modal-content/modal-content.tsx | 20 ++- .../modal-content/modal-content.types.ts | 6 +- ui/components/ui/url-icon/url-icon.js | 9 ++ .../dropdown-search-list.js | 2 +- ui/pages/swaps/import-token/import-token.js | 134 ++++++++++-------- .../import-token/import-token.stories.js | 32 +++-- .../swaps/import-token/import-token.test.js | 7 +- ui/pages/swaps/import-token/index.scss | 26 ---- ui/pages/swaps/index.scss | 1 - .../prepare-swap-page/prepare-swap-page.js | 2 +- 12 files changed, 121 insertions(+), 124 deletions(-) delete mode 100644 ui/pages/swaps/import-token/index.scss diff --git a/test/e2e/swaps/swaps-notifications.spec.js b/test/e2e/swaps/swaps-notifications.spec.js index 4d24bf5fe..25c0595b8 100644 --- a/test/e2e/swaps/swaps-notifications.spec.js +++ b/test/e2e/swaps/swaps-notifications.spec.js @@ -141,7 +141,7 @@ describe('Swaps - notifications', function () { swapToContractAddress: '0x72c9Fb7ED19D3ce51cea5C56B3e023cd918baaDf', }); await driver.clickElement( - '[data-testid="page-container__import-button"]', + '[data-testid="import-tokens-import-button"]', ); await checkNotification(driver, { title: 'Token added manually', diff --git a/ui/components/component-library/modal-content/__snapshots__/modal-content.test.tsx.snap b/ui/components/component-library/modal-content/__snapshots__/modal-content.test.tsx.snap index f4e452905..1a82b95f4 100644 --- a/ui/components/component-library/modal-content/__snapshots__/modal-content.test.tsx.snap +++ b/ui/components/component-library/modal-content/__snapshots__/modal-content.test.tsx.snap @@ -2,12 +2,12 @@ exports[`ModalContent should match snapshot 1`] = `