diff --git a/src/app/components/WalletCard/WalletCard.stories.tsx b/src/app/components/WalletCard/WalletCard.stories.tsx index 991b4628c0..d0f6a3737b 100644 --- a/src/app/components/WalletCard/WalletCard.stories.tsx +++ b/src/app/components/WalletCard/WalletCard.stories.tsx @@ -14,7 +14,7 @@ export const Default = () => { coinIcon="Ethereum" coinClass="border-theme-neutral-800" walletName="Primary" - address="1ASuusXSW9kfWnicScSgUTjttP6T9GQ3kqT" + address="D61mfSggzbvQgTUe6JhYKH2doHaqJ3Dyib" balance="100,000 ETH" actions={[ { label: "Action 1", value: "1" }, diff --git a/src/domains/dashboard/components/Wallets/__snapshots__/Wallets.test.tsx.snap b/src/domains/dashboard/components/Wallets/__snapshots__/Wallets.test.tsx.snap index 4f778ff3e5..139b5fb38e 100644 --- a/src/domains/dashboard/components/Wallets/__snapshots__/Wallets.test.tsx.snap +++ b/src/domains/dashboard/components/Wallets/__snapshots__/Wallets.test.tsx.snap @@ -606,146 +606,6 @@ exports[`Wallets should render with list view enabled as default 1`] = ` - - -
-
-
- - ark.svg - -
-
-
-
- 1ASuusXSW9kfWnicScSgUTjttP6T9GQ3kqT" - title="1ASuusXSW9kfWnicScSgUTjttP6T9GQ3kqT" - /> -
-
-
- - -
- - My Wallet - - - 1ASuusXSW…6T9GQ3kqT - -
- - -
-
- - star.svg - -
-
-
-
- - multisig.svg - -
-
-
-
- - ledger.svg - -
-
- - -
- 2,000,000 ARK -
- - -
- 1,000,000 USD -
- - -
-
-
-
- - settings.svg - -
-
-
-
- - @@ -2459,146 +2319,6 @@ exports[`Wallets should render with list view enabled as default and empty walle - - -
-
-
- - ark.svg - -
-
-
-
- 1ASuusXSW9kfWnicScSgUTjttP6T9GQ3kqT" - title="1ASuusXSW9kfWnicScSgUTjttP6T9GQ3kqT" - /> -
-
-
- - -
- - My Wallet - - - 1ASuusXSW…6T9GQ3kqT - -
- - -
-
- - star.svg - -
-
-
-
- - multisig.svg - -
-
-
-
- - ledger.svg - -
-
- - -
- 2,000,000 ARK -
- - -
- 1,000,000 USD -
- - -
-
-
-
- - settings.svg - -
-
-
-
- - diff --git a/src/domains/dashboard/data.ts b/src/domains/dashboard/data.ts index 3e004431fc..fcf70c0f36 100644 --- a/src/domains/dashboard/data.ts +++ b/src/domains/dashboard/data.ts @@ -14,30 +14,6 @@ export const networks = [ ]; export const wallets = [ - { - id: "1ASuusXSW9kfWnicScSgUTjttP6T9GQ3kqT", - coinIcon: "Ark", - coinClass: "text-theme-danger-400 border-theme-danger-light", - address: "1ASuusXSW9kfWnicScSgUTjttP6T9GQ3kqT", - walletName: "My Wallet", - balance: "2,000,000 ARK", - fiat: "1,000,000 USD", - walletTypeIcons: ["Star", "Multisig", "Ledger"], - actions: [ - { - label: "Action 1", - value: "1", - }, - { - label: "Action 2", - value: "2", - }, - { - label: "Action 3", - value: "3", - }, - ], - }, { id: "2ASuusXSW9kfWnicScSgUTjttP6T9GQ3kqT", coinIcon: "Ethereum", diff --git a/src/domains/dashboard/pages/Dashboard/__snapshots__/Dashboard.test.tsx.snap b/src/domains/dashboard/pages/Dashboard/__snapshots__/Dashboard.test.tsx.snap index 8667dfa0c7..3425a448e2 100644 --- a/src/domains/dashboard/pages/Dashboard/__snapshots__/Dashboard.test.tsx.snap +++ b/src/domains/dashboard/pages/Dashboard/__snapshots__/Dashboard.test.tsx.snap @@ -586,149 +586,6 @@ exports[`Dashboard should render 1`] = ` class="h-full swiper-wrapper " style="transition: 0ms; transform: translate3d(NaNpx, 0px, 0px);" > -
- -
-
-
-
-
-
-
- - settings.svg - -
-
-
-
-
-
-
- - star.svg - -
-
-
-
- - multisig.svg - -
-
-
-
- - ledger.svg - -
-
-
-
-
-
- - ark.svg - -
-
-
-
- 1ASuusXSW9kfWnicScSgUTjttP6T9GQ3kqT" - title="1ASuusXSW9kfWnicScSgUTjttP6T9GQ3kqT" - /> -
-
-
-
-
- - My Wallet - - - 1ASu…3kqT - -
-
-
- 2,000,000 ARK -
-
-
-
-
-
-
- -
-
-
-
-
-
-
- - settings.svg - -
-
-
-
-
-
-
- - star.svg - -
-
-
-
- - multisig.svg - -
-
-
-
- - ledger.svg - -
-
-
-
-
-
- - ark.svg - -
-
-
-
- 1ASuusXSW9kfWnicScSgUTjttP6T9GQ3kqT" - title="1ASuusXSW9kfWnicScSgUTjttP6T9GQ3kqT" - /> -
-
-
-
-
- - My Wallet - - - 1ASu…3kqT - -
-
-
- 2,000,000 ARK -
-
-
-
-
-
-
await t.click(Selector("fieldset p").withText("Time Format is required")); }); -test("should salve settings", async (t) => { +test("should save settings", async (t) => { const nameInput = Selector("input[name=name]"); await t.typeText(nameInput, "Anne Doe"); diff --git a/src/domains/setting/pages/Settings/Settings.tsx b/src/domains/setting/pages/Settings/Settings.tsx index a68aff87e6..ca83bc2a24 100644 --- a/src/domains/setting/pages/Settings/Settings.tsx +++ b/src/domains/setting/pages/Settings/Settings.tsx @@ -61,5 +61,5 @@ export const Settings = ({ onSubmit }: SettingsProps) => { }; Settings.defaultProps = { - onSubmit: (profileData: any) => console.log({ profileData }), + onSubmit: (profileData: any) => profileData, }; diff --git a/src/domains/transaction/e2e/transactions-routing.e2e.ts b/src/domains/transaction/e2e/transactions-routing.e2e.ts index 9a74ea07c7..7c691aa3cb 100644 --- a/src/domains/transaction/e2e/transactions-routing.e2e.ts +++ b/src/domains/transaction/e2e/transactions-routing.e2e.ts @@ -20,7 +20,7 @@ test("should navigate to portfolio and sign message", async (t) => { // Handle sign message await t.click(Selector("span").withText(translations().COMMON.GO_BACK_TO_PORTFOLIO)); - await t.click(Selector("[data-testid=WalletCard__1ASuusXSW9kfWnicScSgUTjttP6T9GQ3kqT]")); + await t.click(Selector("[data-testid=WalletCard__ac38fe6d-4b67-4ef1-85be-17c5f6841129]")); await scrollBy(0, -200); await t.click(Selector("[data-testid=WalletHeader__more-button]")); await t.click(Selector("li").withText(translations().WALLETS.PAGE_WALLET_DETAILS.OPTIONS.SIGN_MESSAGE)); @@ -35,7 +35,7 @@ test("should navigate to portfolio and access registrations", async (t) => { await t.expect(Selector("div").withText(translations().COMMON.WALLETS).exists).ok(); // Go to registrations - await t.click(Selector("[data-testid=WalletCard__1ASuusXSW9kfWnicScSgUTjttP6T9GQ3kqT]")); + await t.click(Selector("[data-testid=WalletCard__ac38fe6d-4b67-4ef1-85be-17c5f6841129]")); await t.click(Selector("[data-testid=WalletRegistrations__show-all]")); await t.expect(Selector("h1").withText(translations().PROFILE.PAGE_MY_REGISTRATIONS.TITLE).exists).ok(); }); @@ -45,7 +45,7 @@ test("should navigate to portfolio and registrate", async (t) => { await t.expect(Selector("div").withText(translations().COMMON.WALLETS).exists).ok(); // Go to registrations - await t.click(Selector("[data-testid=WalletCard__1ASuusXSW9kfWnicScSgUTjttP6T9GQ3kqT]")); + await t.click(Selector("[data-testid=WalletCard__ac38fe6d-4b67-4ef1-85be-17c5f6841129]")); await t.click(Selector("[data-testid=WalletRegistrations__register]")); await t.expect(Selector("h1").withText("Registration").exists).ok(); }); diff --git a/src/domains/wallet/e2e/wallets-routing.e2e.ts b/src/domains/wallet/e2e/wallets-routing.e2e.ts index 86655b38d3..d3294f0827 100644 --- a/src/domains/wallet/e2e/wallets-routing.e2e.ts +++ b/src/domains/wallet/e2e/wallets-routing.e2e.ts @@ -8,7 +8,7 @@ test("should navigate to portfolio and access a wallet details", async (t) => { await t.click(Selector("p").withText("John Doe")); await t.expect(Selector("div").withText(translations().COMMON.WALLETS).exists).ok(); - await t.click(Selector("[data-testid=WalletCard__1ASuusXSW9kfWnicScSgUTjttP6T9GQ3kqT]")); + await t.click(Selector("[data-testid=WalletCard__ac38fe6d-4b67-4ef1-85be-17c5f6841129]")); await t.expect(Selector("h2").withText("ARK Wallet 1").exists).ok(); });