From 454792d646d0cce036d7bca4c81fd7b94caeb493 Mon Sep 17 00:00:00 2001 From: Juan Patricio Marroquin Date: Wed, 13 Nov 2024 01:42:37 -0500 Subject: [PATCH 1/8] refactor: set accordions opened by default --- src/app/hooks/use-accordion.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/hooks/use-accordion.ts b/src/app/hooks/use-accordion.ts index c683121bd4..73ee39dfbe 100644 --- a/src/app/hooks/use-accordion.ts +++ b/src/app/hooks/use-accordion.ts @@ -1,7 +1,7 @@ import { useCallback, useState } from "react"; export const useAccordion = () => { - const [isExpanded, setIsExpanded] = useState(false); + const [isExpanded, setIsExpanded] = useState(true); const handleHeaderClick = useCallback( (event: React.MouseEvent) => { From 1bca28fc3ae7b0a502057c34d5c7d194186ee99d Mon Sep 17 00:00:00 2001 From: Juan Patricio Marroquin Date: Wed, 13 Nov 2024 02:08:09 -0500 Subject: [PATCH 2/8] fix: unit tests --- .../components/Accordion/Accordion.test.tsx | 4 +- .../__snapshots__/Accordion.test.tsx.snap | 12 +- .../ContactListItemMobile.test.tsx | 6 - .../ContactListItemMobile.test.tsx.snap | 113 +- .../ContactListMobile.test.tsx.snap | 111 +- .../Dashboard.WalletActions.test.tsx | 6 +- .../__snapshots__/Dashboard.test.tsx.snap | 1490 ++++- .../setting/pages/Servers/Servers.test.tsx | 32 +- .../__snapshots__/Servers.test.tsx.snap | 5650 +++++++++++++---- 9 files changed, 5972 insertions(+), 1452 deletions(-) diff --git a/src/app/components/Accordion/Accordion.test.tsx b/src/app/components/Accordion/Accordion.test.tsx index d217bdc822..b23c7e6b95 100644 --- a/src/app/components/Accordion/Accordion.test.tsx +++ b/src/app/components/Accordion/Accordion.test.tsx @@ -115,12 +115,12 @@ describe("Button", () => { const { container } = render(); expect(screen.getByTestId("AccordionHeader")).toBeInTheDocument(); - expect(screen.queryByTestId("AccordionContent")).not.toBeInTheDocument(); + expect(screen.queryByTestId("AccordionContent")).toBeInTheDocument(); expect(screen.getByTestId("Accordion__toggle")).toBeInTheDocument(); await userEvent.click(screen.getByTestId("AccordionHeader")); - expect(screen.getByTestId("AccordionContent")).toBeInTheDocument(); + expect(screen.queryByTestId("AccordionContent")).not.toBeInTheDocument(); expect(container).toMatchSnapshot(); }); diff --git a/src/app/components/Accordion/__snapshots__/Accordion.test.tsx.snap b/src/app/components/Accordion/__snapshots__/Accordion.test.tsx.snap index 05b47eead6..6a9e2ca693 100644 --- a/src/app/components/Accordion/__snapshots__/Accordion.test.tsx.snap +++ b/src/app/components/Accordion/__snapshots__/Accordion.test.tsx.snap @@ -301,7 +301,7 @@ exports[`Button > should toggle the accordion on click 1`] = ` class="css-fvpuky" >
should toggle the accordion on click 1`] = ` Header
@@ -342,12 +342,6 @@ exports[`Button > should toggle the accordion on click 1`] = `
-
- Content -
`; diff --git a/src/domains/contact/components/ContactListMobile/ContactListItemMobile.test.tsx b/src/domains/contact/components/ContactListMobile/ContactListItemMobile.test.tsx index 15860503fb..db99db1160 100644 --- a/src/domains/contact/components/ContactListMobile/ContactListItemMobile.test.tsx +++ b/src/domains/contact/components/ContactListMobile/ContactListItemMobile.test.tsx @@ -61,8 +61,6 @@ describe("ContactListItemMobile", () => { />, ); - await userEvent.click(screen.getByTestId("AccordionHeader")); - await waitFor(() => { expect(screen.getByTestId("ContactListItemMobile__addresses")).toBeInTheDocument(); }); @@ -84,8 +82,6 @@ describe("ContactListItemMobile", () => { />, ); - await userEvent.click(screen.getByTestId("AccordionHeader")); - await waitFor(() => { expect(screen.getByTestId("ContactListItemMobile__addresses")).toBeInTheDocument(); }); @@ -113,8 +109,6 @@ describe("ContactListItemMobile", () => { />, ); - await userEvent.click(screen.getByTestId("AccordionHeader")); - await waitFor(() => { expect(screen.getByTestId("ContactListItemMobile__addresses")).toBeInTheDocument(); }); diff --git a/src/domains/contact/components/ContactListMobile/__snapshots__/ContactListItemMobile.test.tsx.snap b/src/domains/contact/components/ContactListMobile/__snapshots__/ContactListItemMobile.test.tsx.snap index 412befea85..df9483140e 100644 --- a/src/domains/contact/components/ContactListMobile/__snapshots__/ContactListItemMobile.test.tsx.snap +++ b/src/domains/contact/components/ContactListMobile/__snapshots__/ContactListItemMobile.test.tsx.snap @@ -6,7 +6,7 @@ exports[`ContactListItemMobile > should render 1`] = ` class="css-fvpuky" >
should render 1`] = `
@@ -107,6 +107,113 @@ exports[`ContactListItemMobile > should render 1`] = `
+
+
+
+
+
+ ARK Devnet +
+
+
+ + D61mfSggzbvQgTUe6JhYKH2doHaqJ3Dyib + + +
+
+
+
+ +
+
+
+
`; diff --git a/src/domains/contact/components/ContactListMobile/__snapshots__/ContactListMobile.test.tsx.snap b/src/domains/contact/components/ContactListMobile/__snapshots__/ContactListMobile.test.tsx.snap index 0be45c99c6..3d3e1f39b2 100644 --- a/src/domains/contact/components/ContactListMobile/__snapshots__/ContactListMobile.test.tsx.snap +++ b/src/domains/contact/components/ContactListMobile/__snapshots__/ContactListMobile.test.tsx.snap @@ -10,7 +10,7 @@ exports[`ContactListMobile > should render 1`] = ` class="css-fvpuky" >
should render 1`] = `
@@ -111,6 +111,111 @@ exports[`ContactListMobile > should render 1`] = `
+
+
+
+
+
+
+
+ + D61mfSggzbvQgTUe6JhYKH2doHaqJ3Dyib + + +
+
+
+
+ +
+
+
+
diff --git a/src/domains/dashboard/pages/Dashboard/Dashboard.WalletActions.test.tsx b/src/domains/dashboard/pages/Dashboard/Dashboard.WalletActions.test.tsx index 3fd0d6eb8b..f298969122 100755 --- a/src/domains/dashboard/pages/Dashboard/Dashboard.WalletActions.test.tsx +++ b/src/domains/dashboard/pages/Dashboard/Dashboard.WalletActions.test.tsx @@ -79,7 +79,7 @@ describe("Dashboard", () => { }, ); - await waitFor(() => expect(screen.getAllByRole("row")).toHaveLength(9)); + await waitFor(() => expect(screen.getAllByRole("row")).toHaveLength(12)); await userEvent.click(screen.getByText(dashboardTranslations.WALLET_CONTROLS.IMPORT_LEDGER)); @@ -101,7 +101,7 @@ describe("Dashboard", () => { }, ); - await waitFor(() => expect(screen.getAllByRole("row")).toHaveLength(9)); + await waitFor(() => expect(screen.getAllByRole("row")).toHaveLength(12)); await userEvent.click(screen.getByText("Create")); @@ -119,7 +119,7 @@ describe("Dashboard", () => { }, ); - await waitFor(() => expect(screen.getAllByRole("row")).toHaveLength(9)); + await waitFor(() => expect(screen.getAllByRole("row")).toHaveLength(12)); await userEvent.click(screen.getByText("Import")); 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 e4a94fffd7..57fc7c7b48 100644 --- a/src/domains/dashboard/pages/Dashboard/__snapshots__/Dashboard.test.tsx.snap +++ b/src/domains/dashboard/pages/Dashboard/__snapshots__/Dashboard.test.tsx.snap @@ -907,18 +907,18 @@ exports[`Dashboard > should render 1`] = ` data-testid="NetworkWalletsGroupList" >
should render 1`] = `
@@ -1077,20 +1077,601 @@ exports[`Dashboard > should render 1`] = `
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+ +
+
+
+
+
+
+ Address +
+
+ +
+
+
+
+
+ Info +
+
+
+
+
+ Balance +
+
+ +
+
+
+ +
+
+
+
+
+ + + +
+
+
+
+
+
+
+
+ + + arkx + + + + AdVSe37niA3uFUPgCgMUH2tMsHF4LpLoiX + + +
+
+
+
+
+
+
+
+ + + + + + +
+
+
+
+
+
+ + 50,114.21127898 ARK + +
+
+
+
+ +
+
+
+ +
+
+
+
+
+
should render 1`] = `
@@ -1311,6 +1892,895 @@ exports[`Dashboard > should render 1`] = `
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+ +
+
+
+
+
+
+ Address +
+
+ +
+
+
+
+
+ Info +
+
+
+
+
+ Balance +
+
+ +
+
+
+ +
+
+
+
+
+ + + +
+
+
+
+
+
+
+
+ + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
+
+
+
+
+
+
+
+ + + +
+
+
+
+
+
+ + 33.75089801 DARK + +
+
+
+
+ +
+
+
+ +
+
+
+
+
+
+
+ + + +
+
+
+
+
+
+
+
+ + + ARK Wallet 2 + + + + D5sRKWckH4rE1hQ9eeMeHAepgyC3cvJtwb + + +
+
+
+
+
+
+
+
+ + + + + + +
+
+
+
+ + + +
+
+
+
+
+
+ + 57.68 DARK + +
+
+
+
+ +
+
+
+ +
+
+
+
+
+
diff --git a/src/domains/setting/pages/Servers/Servers.test.tsx b/src/domains/setting/pages/Servers/Servers.test.tsx index a21f2df3ed..d41a5d6df2 100644 --- a/src/domains/setting/pages/Servers/Servers.test.tsx +++ b/src/domains/setting/pages/Servers/Servers.test.tsx @@ -899,7 +899,7 @@ describe("Servers Settings", () => { await userEvent.click(within(table).getAllByTestId(networkAccordionIconTestId)[0]); - expect(screen.getByTestId("CustomPeers-network-item--mobile--expanded")).toBeInTheDocument(); + expect(screen.queryAllByTestId("CustomPeers-network-item--mobile--expanded")[0]).toBeInTheDocument(); }); it("can expand a custom servers accordion in xs for peer", async () => { @@ -918,7 +918,7 @@ describe("Servers Settings", () => { // index 2 is a peer network await userEvent.click(within(table).getAllByTestId(networkAccordionIconTestId)[2]); - expect(screen.getByTestId("CustomPeers-network-item--mobile--expanded")).toBeInTheDocument(); + expect(screen.queryAllByTestId("CustomPeers-network-item--mobile--expanded")[0]).toBeInTheDocument(); }); it("can check servers accordion in mobile", async () => { @@ -962,7 +962,7 @@ describe("Servers Settings", () => { await userEvent.click(within(table).getAllByTestId(networkAccordionIconTestId)[0]); - await userEvent.click(screen.getByTestId("CustomPeers-network-item--mobile--edit")); + await userEvent.click(screen.queryAllByTestId("CustomPeers-network-item--mobile--edit")[0]); expect(screen.getByTestId("ServerFormModal")).toBeInTheDocument(); }); @@ -982,7 +982,7 @@ describe("Servers Settings", () => { await userEvent.click(within(table).getAllByTestId(networkAccordionIconTestId)[0]); - await userEvent.click(screen.getByTestId("CustomPeers-network-item--mobile--delete")); + await userEvent.click(screen.queryAllByTestId("CustomPeers-network-item--mobile--delete")[0]); await expect(screen.findByTestId(serverDeleteConfirmationTestId)).resolves.toBeVisible(); }); @@ -1002,11 +1002,9 @@ describe("Servers Settings", () => { const table = screen.getByTestId(customPeerListTestId); - await userEvent.click(within(table).getAllByTestId(networkAccordionIconTestId)[0]); - await waitFor(() => expect(screen.queryByTestId(peerStatusLoadingTestId)).not.toBeInTheDocument()); - await userEvent.click(screen.getByTestId("CustomPeers-network-item--mobile--refresh")); + await userEvent.click(screen.queryAllByTestId("CustomPeers-network-item--mobile--refresh")[0]); await waitFor(() => { expect(refreshPersistMock).toHaveBeenCalledOnce(); @@ -1027,17 +1025,17 @@ describe("Servers Settings", () => { ); // Is loading initially - expect(screen.getAllByTestId(peerStatusLoadingTestId)).toHaveLength(3); + expect(screen.getAllByTestId(peerStatusLoadingTestId)).toHaveLength(6); // After ping it should show ok - await waitFor(() => expect(screen.getAllByTestId(peerStatusOkTestId)).toHaveLength(3)); + await waitFor(() => expect(screen.getAllByTestId(peerStatusOkTestId)).toHaveLength(6)); await userEvent.click(screen.getAllByTestId(peerStatusOkTestId)[0]); await waitFor(() => - expect(screen.queryByTestId("CustomPeers-network-item--mobile--expanded")).not.toBeInTheDocument(), + expect(screen.queryAllByTestId("CustomPeers-network-item--mobile--expanded")[0]).toBeInTheDocument(), ); - }); + }); it("should show status ok after ping the servers", async () => { const { asFragment } = render( @@ -1091,10 +1089,10 @@ describe("Servers Settings", () => { ); // Is loading initially - expect(screen.getAllByTestId(peerStatusLoadingTestId)).toHaveLength(3); + expect(screen.getAllByTestId(peerStatusLoadingTestId)).toHaveLength(6); // After ping it should show ok - await waitFor(() => expect(screen.getAllByTestId(peerStatusOkTestId)).toHaveLength(3)); + await waitFor(() => expect(screen.getAllByTestId(peerStatusOkTestId)).toHaveLength(6)); expect(asFragment()).toMatchSnapshot(); }); @@ -1115,7 +1113,7 @@ describe("Servers Settings", () => { ); // After ping it should show ok - await waitFor(() => expect(screen.getAllByTestId(peerStatusOkTestId)).toHaveLength(4)); + await waitFor(() => expect(screen.getAllByTestId(peerStatusOkTestId)).toHaveLength(5)); expect(asFragment()).toMatchSnapshot(); }); @@ -1410,10 +1408,10 @@ describe("Servers Settings", () => { ); // Is loading initially - expect(screen.getAllByTestId(peerStatusLoadingTestId)).toHaveLength(3); + expect(screen.getAllByTestId(peerStatusLoadingTestId)).toHaveLength(6); // After ping it should show error - await waitFor(() => expect(screen.getAllByTestId(peerStatusErrorTestId)).toHaveLength(3)); + await waitFor(() => expect(screen.getAllByTestId(peerStatusErrorTestId)).toHaveLength(6)); expect(asFragment()).toMatchSnapshot(); }); @@ -1434,7 +1432,7 @@ describe("Servers Settings", () => { ); // After ping it should show error - await waitFor(() => expect(screen.getAllByTestId(peerStatusErrorTestId)).toHaveLength(4)); + await waitFor(() => expect(screen.getAllByTestId(peerStatusErrorTestId)).toHaveLength(5)); expect(asFragment()).toMatchSnapshot(); }); diff --git a/src/domains/setting/pages/Servers/__snapshots__/Servers.test.tsx.snap b/src/domains/setting/pages/Servers/__snapshots__/Servers.test.tsx.snap index 4e23b58cd8..db1ca66d6b 100644 --- a/src/domains/setting/pages/Servers/__snapshots__/Servers.test.tsx.snap +++ b/src/domains/setting/pages/Servers/__snapshots__/Servers.test.tsx.snap @@ -6977,11 +6977,11 @@ exports[`Servers Settings > with servers > should render customs servers in xs 1 class="-mx-8" >
with servers > should render customs servers in xs 1
@@ -7100,17 +7100,237 @@ exports[`Servers Settings > with servers > should render customs servers in xs 1
+
+
+
+
+ Network +
+
+
+ ARK +
+
+
+
+
+ Type +
+
+
+
+ Peer +
+
+ + + +
+
+
+
+
+
+ Address +
+
+
+ https://ark-live.arkvault.io/api +
+
+
+
+
+ Status +
+
+
+
+
+
+
+
+
+
+
+
+ + + +
+
+
with servers > should render customs servers in xs 1
@@ -7254,32 +7474,270 @@ exports[`Servers Settings > with servers > should render customs servers in xs 1
-
-
-
-
-
+
+
+ ARK Devnet +
+
+
+
+
+ Type +
+
+
+
+ Multisig +
+
+ + + + + + + + + + + +
+
+
+
+
+
+ Address +
+
+
+ https://ark-test-musig.arkvault.io +
+
+
+
+
+ Status +
+
+
+
+
+
+
+
+
+
+
+
+ + + +
+
+
+
+
+
+
+
+
+
+
+
with servers > should render customs servers in xs 1
@@ -7383,13 +7841,251 @@ exports[`Servers Settings > with servers > should render customs servers in xs 1
-
-
- - +
+
+
+ Network +
+
+
+ ARK +
+
+
+
+
+ Type +
+
+
+
+ Multisig +
+
+ + + + + + + + + + + +
+
+
+
+
+
+ Address +
+
+
+ https://ark-live-musig.arkvault.io +
+
+
+
+
+ Status +
+
+
+
+
+
+
+
+
+
+
+
+ + + +
+
+
+ + +
+
@@ -11040,11 +11736,11 @@ exports[`Servers Settings > with servers > should show status ok after ping the class="-mx-8" >
with servers > should show status ok after ping the
@@ -11191,101 +11887,170 @@ exports[`Servers Settings > with servers > should show status ok after ping the
-
-
-
-
+ Network +
+
+ ARK +
+
+
+
+
+ Type +
+
+
+
+ Peer +
+
+
- ARK Devnet Musig #1 + Address
- +
- - - + https://ark-live.arkvault.io/api
- +
+ Status +
+
+ + Peer is healthy +
+
+
+ + + + + + +
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+ + + +
+ + Edit + +
+
@@ -11379,26 +12146,26 @@ exports[`Servers Settings > with servers > should show status ok after ping the class="-mx-8" >
with servers > should show status ok after ping the
- ARK Musig #1 + ARK Devnet Musig #1
+ +
+ + + +
+
with servers > should show status ok after ping the
@@ -11530,179 +12322,878 @@ exports[`Servers Settings > with servers > should show status ok after ping the
-
-
- - -
-
- -
-
- - -
- -
- -
-
-
-
-
-
-
- -`; - -exports[`Servers Settings > with servers > should show status ok after ping the servers on mobile when expanded 1`] = ` - -
-
-
-
- -
- -
+
+ Network +
+
+
+ ARK Devnet +
+
+
+
+
+ Type +
+
+
+
+ Multisig +
+
+ + + + + + + + + + + +
+
+
+
+
+
+ Address +
+
+
+ https://ark-test-musig.arkvault.io +
+
+
+
+
+ Status +
+
+
+ + Peer is healthy + +
+
+
+ + + + + + +
+
+
+
+
+
+
+ + + +
+
+
+
+
+
+
+
+
+
+
+
+
+ + + +
+
+
+
+ ARK Musig #1 +
+
+
+
+
+
+ + + + + + +
+
+
+
+ +
+
+
+
+
+
+ + + +
+
+
+
+
+
+
+
+ Network +
+
+
+ ARK +
+
+
+
+
+ Type +
+
+
+
+ Multisig +
+
+ + + + + + + + + + + +
+
+
+
+
+
+ Address +
+
+
+ https://ark-live-musig.arkvault.io +
+
+
+
+
+ Status +
+
+
+ + Peer is healthy + +
+
+
+ + + + + + +
+
+
+
+
+
+
+ + + +
+
+
+
+
+ + +
+
+ +
+
+ + +
+ +
+ +
+
+
+ + + + + +`; + +exports[`Servers Settings > with servers > should show status ok after ping the servers on mobile when expanded 1`] = ` + +
+
+
+
+ +
+ +
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - -
-
-
-
- ARK Devnet Musig #1 -
- -
- - - -
-
-
-
-
-
-
- - - - - - -
-
-
-
- -
-
-
-
-
-
- - - -
+
@@ -13506,11 +15015,11 @@ exports[`Servers Settings > with servers > should show status ok after ping the class="-mx-8" >
with servers > should show status ok after ping the
@@ -13644,16 +15153,287 @@ exports[`Servers Settings > with servers > should show status ok after ping the xmlns="http://www.w3.org/2000/svg" y="0" > - - -
+ + +
+
+
+
+
+
+
+
+ Network +
+
+
+ ARK +
+
+
+
+
+ Type +
+
+
+
+ Multisig +
+
+ + + + + + + + + + + +
+
+
+
+
+
+ Address +
+
+
+ https://ark-live-musig.arkvault.io +
+
+
+
+
+ Status +
+
+
+ + Peer is healthy + +
+
+
+ + + + + + +
+
+
+
+
+
+
+ + +
@@ -17128,251 +18908,1001 @@ exports[`Servers Settings > with unreachable servers > should show status error xmlns="http://www.w3.org/2000/svg" y="0" > - - + + +
+ +
+
+
+
+
+
+ + + +
+
+
+
+ ARK Devnet +
+
+
+
+ + + + +
+
+
+
+
+ +
+
+
+
+ +
  • +
    +
    +
    + + Custom Peers and Multisig Servers + +
    + + Manage custom peers and multisig servers. Using more than one per network will broadcast to all selected. + +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    + ARK #1 +
    +
    +
    +
    +
    +
    + + + + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    - -
    -
    -
    -
    -
    - - - +
    +
    + Network +
    +
    +
    + ARK +
    +
    +
    +
    +
    + Type +
    +
    +
    +
    + Peer +
    +
    + + + +
    +
    +
    +
    +
    +
    + Address +
    +
    +
    + https://ark-live.arkvault.io/api +
    +
    +
    +
    +
    + Status +
    +
    +
    + + Peer is not resolving + +
    +
    +
    + + + + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    - ARK Devnet -
    -
    - - - - -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
  • -
  • -
    -
    -
    - - Custom Peers and Multisig Servers - -
    - - Manage custom peers and multisig servers. Using more than one per network will broadcast to all selected. - -
    -
    -
    -
    -
    -
    -
    +
    + Network +
    +
    +
    + ARK Devnet +
    +
    +
    +
    +
    + Type +
    +
    +
    +
    + Multisig +
    +
    + + + + + + + + + + + +
    +
    +
    +
    +
    +
    + Address +
    +
    +
    + https://ark-test-musig.arkvault.io +
    +
    +
    +
    +
    + Status +
    +
    +
    + + Peer is not resolving + +
    +
    +
    + + + + +
    +
    +
    +
    +
    +
    +
    -
    + + + + +
    +
    + +
    -
    - ARK #1 -
    -
    -
    -
    +
    -
    - -
    -
    -
    -
    -
    -
    - - - -
    +
    @@ -17447,26 +19924,26 @@ exports[`Servers Settings > with unreachable servers > should show status error class="-mx-8" >
    with unreachable servers > should show status error
    - ARK Devnet Musig #1 -
    - -
    - - - -
    -
    + ARK Musig #1 +
    with unreachable servers > should show status error
    @@ -17620,157 +20072,271 @@ exports[`Servers Settings > with unreachable servers > should show status error
    -
    -
    -
    -
    + Network +
    +
    + ARK +
    +
    +
    +
    +
    + Type +
    +
    +
    +
    + Multisig +
    - + + + + + + + + +
    +
    +
    - ARK Musig #1 + Address +
    +
    +
    + https://ark-live-musig.arkvault.io +
    + Status +
    +
    + + Peer is not resolving +
    +
    +
    + + + + +
    +
    +
    +
    +
    +
    +
    +
    -
    -
    -
    -
    -
    + + + +
    +
    + +
    +
    + + + +
    + + Edit + +
    +
    @@ -19073,81 +21639,682 @@ exports[`Servers Settings > with unreachable servers > should show status error
    -
    +
    + +
    +
    +
    +
    +
  • +
  • +
    +
    +
    + + Custom Peers and Multisig Servers + +
    + + Manage custom peers and multisig servers. Using more than one per network will broadcast to all selected. + +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    + ARK #1 +
    +
    +
    +
    +
    +
    + + + + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    - -
    -
    -
    -
    -
  • -
  • -
    -
    -
    - - Custom Peers and Multisig Servers - -
    - - Manage custom peers and multisig servers. Using more than one per network will broadcast to all selected. - -
    -
    -
    -
    -
    +
    +
    +
    +
    + + + +
    +
    +
    +
    + ARK Devnet Musig #1 +
    + +
    + + + +
    +
    +
    +
    +
    +
    +
    + + + + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + Network +
    +
    +
    + ARK Devnet +
    +
    +
    +
    +
    + Type +
    +
    +
    +
    + Multisig +
    +
    + + + + + + + + + + + +
    +
    +
    +
    +
    +
    + Address +
    +
    +
    + https://ark-test-musig.arkvault.io +
    +
    +
    +
    +
    + Status +
    +
    +
    + + Peer is not resolving + +
    +
    +
    + + + + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    @@ -19198,7 +22365,7 @@ exports[`Servers Settings > with unreachable servers > should show status error
    - ARK #1 + ARK Musig #1
    with unreachable servers > should show status error class="flex items-center space-x-3" >
    - Peer + Multisig
    with unreachable servers > should show status error > - + > + + + + + + + +
    @@ -19380,7 +22565,7 @@ exports[`Servers Settings > with unreachable servers > should show status error
    - https://ark-live.arkvault.io/api + https://ark-live-musig.arkvault.io
    @@ -19430,391 +22615,111 @@ exports[`Servers Settings > with unreachable servers > should show status error stroke-width="2" /> - - - - - - - -
    - - - -
    - - - - -
    -
    -
    -
    -
    -
    -
    -
    - - - -
    -
    -
    -
    - ARK Devnet Musig #1 -
    - -
    - - - + d="M7.3 12.7l5.4-5.4m0 5.4L7.3 7.3" + stroke="currentColor" + stroke-linecap="round" + stroke-linejoin="round" + stroke-width="2" + /> + +
    +
    +
    - +
    -
    - - + > + +
    -
    -
    - -
    -
    -
    -
    -
    -
    - - - -
    -
    -
    -
    - - -
    -
    -
    -
    -
    -
    +
    -
    - ARK Musig #1 -
    -
    -
    -
    +
    -
    - -
    -
    -
    -
    -
    -
    - - - -
    +
    From 0788384809a9de5d10c8373110917d6219845ddd Mon Sep 17 00:00:00 2001 From: Juan Patricio Marroquin Date: Wed, 13 Nov 2024 10:51:03 -0500 Subject: [PATCH 3/8] fix: unit tests --- src/app/components/Accordion/Accordion.test.tsx | 2 +- src/domains/setting/pages/Servers/Servers.test.tsx | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/app/components/Accordion/Accordion.test.tsx b/src/app/components/Accordion/Accordion.test.tsx index b23c7e6b95..8bcfcf8fb5 100644 --- a/src/app/components/Accordion/Accordion.test.tsx +++ b/src/app/components/Accordion/Accordion.test.tsx @@ -115,7 +115,7 @@ describe("Button", () => { const { container } = render(); expect(screen.getByTestId("AccordionHeader")).toBeInTheDocument(); - expect(screen.queryByTestId("AccordionContent")).toBeInTheDocument(); + expect(screen.getByTestId("AccordionContent")).toBeInTheDocument(); expect(screen.getByTestId("Accordion__toggle")).toBeInTheDocument(); await userEvent.click(screen.getByTestId("AccordionHeader")); diff --git a/src/domains/setting/pages/Servers/Servers.test.tsx b/src/domains/setting/pages/Servers/Servers.test.tsx index d41a5d6df2..a2cd03353b 100644 --- a/src/domains/setting/pages/Servers/Servers.test.tsx +++ b/src/domains/setting/pages/Servers/Servers.test.tsx @@ -899,7 +899,7 @@ describe("Servers Settings", () => { await userEvent.click(within(table).getAllByTestId(networkAccordionIconTestId)[0]); - expect(screen.queryAllByTestId("CustomPeers-network-item--mobile--expanded")[0]).toBeInTheDocument(); + expect(screen.getAllByTestId("CustomPeers-network-item--mobile--expanded")[0]).toBeInTheDocument(); }); it("can expand a custom servers accordion in xs for peer", async () => { @@ -918,7 +918,7 @@ describe("Servers Settings", () => { // index 2 is a peer network await userEvent.click(within(table).getAllByTestId(networkAccordionIconTestId)[2]); - expect(screen.queryAllByTestId("CustomPeers-network-item--mobile--expanded")[0]).toBeInTheDocument(); + expect(screen.getAllByTestId("CustomPeers-network-item--mobile--expanded")[0]).toBeInTheDocument(); }); it("can check servers accordion in mobile", async () => { @@ -1000,8 +1000,6 @@ describe("Servers Settings", () => { }, ); - const table = screen.getByTestId(customPeerListTestId); - await waitFor(() => expect(screen.queryByTestId(peerStatusLoadingTestId)).not.toBeInTheDocument()); await userEvent.click(screen.queryAllByTestId("CustomPeers-network-item--mobile--refresh")[0]); @@ -1033,7 +1031,7 @@ describe("Servers Settings", () => { await userEvent.click(screen.getAllByTestId(peerStatusOkTestId)[0]); await waitFor(() => - expect(screen.queryAllByTestId("CustomPeers-network-item--mobile--expanded")[0]).toBeInTheDocument(), + expect(screen.getAllByTestId("CustomPeers-network-item--mobile--expanded")[0]).toBeInTheDocument(), ); }); From bc982c528557f63748f65a6cb450238dca5b6a4a Mon Sep 17 00:00:00 2001 From: patricio0312rev Date: Wed, 13 Nov 2024 15:53:12 +0000 Subject: [PATCH 4/8] style: resolve style guide violations --- src/domains/setting/pages/Servers/Servers.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domains/setting/pages/Servers/Servers.test.tsx b/src/domains/setting/pages/Servers/Servers.test.tsx index a2cd03353b..1ff38b4f31 100644 --- a/src/domains/setting/pages/Servers/Servers.test.tsx +++ b/src/domains/setting/pages/Servers/Servers.test.tsx @@ -1033,7 +1033,7 @@ describe("Servers Settings", () => { await waitFor(() => expect(screen.getAllByTestId("CustomPeers-network-item--mobile--expanded")[0]).toBeInTheDocument(), ); - }); + }); it("should show status ok after ping the servers", async () => { const { asFragment } = render( From a9500136efb7f323838d2a693ad6cebc835edc47 Mon Sep 17 00:00:00 2001 From: Juan Patricio Marroquin Date: Wed, 13 Nov 2024 11:03:59 -0500 Subject: [PATCH 5/8] fix: unit tests --- .../__snapshots__/Contacts.test.tsx.snap | 416 +- .../PortfolioHeader.test.tsx.snap | 3594 ++- .../WalletsGroup/WalletsGroup.test.tsx | 20 +- .../__snapshots__/WalletsGroup.test.tsx.snap | 22290 ++++++++++++++-- 4 files changed, 23613 insertions(+), 2707 deletions(-) diff --git a/src/domains/contact/pages/Contacts/__snapshots__/Contacts.test.tsx.snap b/src/domains/contact/pages/Contacts/__snapshots__/Contacts.test.tsx.snap index 965460869e..3d9af4b4e1 100644 --- a/src/domains/contact/pages/Contacts/__snapshots__/Contacts.test.tsx.snap +++ b/src/domains/contact/pages/Contacts/__snapshots__/Contacts.test.tsx.snap @@ -2271,7 +2271,7 @@ exports[`Contacts > should render responsive with contacts 1`] = ` class="css-fvpuky" >
    should render responsive with contacts 1`] = `
    @@ -2372,12 +2372,118 @@ exports[`Contacts > should render responsive with contacts 1`] = `
    +
    +
    +
    +
    +
    + ARK Devnet +
    +
    +
    + + D61mfSggzbvQgTUe6JhYKH2doHaqJ3Dyib + + +
    +
    +
    +
    + +
    +
    +
    +
    should render responsive with contacts 1`] = `
    @@ -2478,6 +2584,304 @@ exports[`Contacts > should render responsive with contacts 1`] = `
    +
    +
    +
    +
    +
    + ARK Devnet +
    +
    +
    + + DFJ5Z51F1euNNdRUQJKQVdG4h495LZkc6T + + +
    +
    +
    +
    + +
    +
    +
    +
    +
    + ARK Devnet +
    +
    +
    + + D9YiyRYMBS2ofzqkufjrkB9nHofWgJLM7f + + +
    +
    +
    +
    + +
    +
    +
    +
    +
    + ARK Devnet +
    +
    +
    + + DKrACQw7ytoU2gjppy3qKeE2dQhZjfXYqu + + +
    +
    +
    +
    + +
    +
    +
    +
    diff --git a/src/domains/wallet/components/PortfolioHeader/__snapshots__/PortfolioHeader.test.tsx.snap b/src/domains/wallet/components/PortfolioHeader/__snapshots__/PortfolioHeader.test.tsx.snap index 4ec67da7c1..35a60eadbd 100644 --- a/src/domains/wallet/components/PortfolioHeader/__snapshots__/PortfolioHeader.test.tsx.snap +++ b/src/domains/wallet/components/PortfolioHeader/__snapshots__/PortfolioHeader.test.tsx.snap @@ -256,18 +256,18 @@ exports[`Portfolio grouped networks > should apply ledger import 1`] = ` data-testid="NetworkWalletsGroupList" >
    should apply ledger import 1`] = `
    @@ -486,20 +486,601 @@ exports[`Portfolio grouped networks > should apply ledger import 1`] = `
    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    + Address +
    +
    + +
    +
    +
    +
    +
    + Info +
    +
    +
    +
    +
    + Balance +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + arkx + + + + AdVSe37niA3uFUPgCgMUH2tMsHF4LpLoiX + + +
    +
    +
    +
    +
    +
    +
    +
    + + + + + + +
    +
    +
    +
    +
    +
    + + 50,114.21127898 ARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    should apply ledger import 1`] = `
    @@ -758,6 +1339,895 @@ exports[`Portfolio grouped networks > should apply ledger import 1`] = `
    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    + Address +
    +
    + +
    +
    +
    +
    +
    + Info +
    +
    +
    +
    +
    + Balance +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 2 + + + + D5sRKWckH4rE1hQ9eeMeHAepgyC3cvJtwb + + +
    +
    +
    +
    +
    +
    +
    +
    + + + + + + +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    + + 57.68 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    @@ -1019,18 +2489,18 @@ exports[`Portfolio grouped networks > should render list 1`] = ` data-testid="NetworkWalletsGroupList" >
    should render list 1`] = `
    @@ -1249,39 +2719,620 @@ exports[`Portfolio grouped networks > should render list 1`] = `
    -
    -
    -
    -
    - +
    + +
    +
    +
    + +
    +
    +
    + + +
    +
    + Name +
    +
    + +
    +
    + + +
    +
    + Address +
    +
    + +
    +
    + + +
    +
    + Info +
    +
    + + +
    +
    + Balance +
    +
    + +
    +
    + + +
    +
    + Currency +
    +
    + +
    +
    + + + + + + + + + +
    +
    +
    +
    + + + +
    +
    +
    +
    + + +
    +
    +
    + + + arkx + + +
    +
    +
    + + +
    +
    +
    + + + arkx + + + + AdVSe37niA3uFUPgCgMUH2tMsHF4LpLoiX + + +
    +
    +
    + + +
    +
    +
    +
    + + + + + + +
    +
    +
    +
    + + +
    + + 50,114.21127898 ARK + +
    + + +
    + + 0 BTC + +
    + + +
    +
    + +
    +
    +
    + +
    +
    + + + + +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + should render list 1`] = `
    @@ -1521,6 +3572,895 @@ exports[`Portfolio grouped networks > should render list 1`] = `
    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    + Address +
    +
    + +
    +
    +
    +
    +
    + Info +
    +
    +
    +
    +
    + Balance +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 2 + + + + D5sRKWckH4rE1hQ9eeMeHAepgyC3cvJtwb + + +
    +
    +
    +
    +
    +
    +
    +
    + + + + + + +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    + + 57.68 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    @@ -1782,18 +4722,18 @@ exports[`Portfolio grouped networks > should render without testnet wallets 1`] data-testid="NetworkWalletsGroupList" >
    should render without testnet wallets 1`]
    @@ -2012,6 +4952,564 @@ exports[`Portfolio grouped networks > should render without testnet wallets 1`]
    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    + Address +
    +
    + +
    +
    +
    +
    +
    + Info +
    +
    +
    +
    +
    + Balance +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + arkx + + + + AdVSe37niA3uFUPgCgMUH2tMsHF4LpLoiX + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 50,114.21127898 ARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    diff --git a/src/domains/wallet/components/WalletsGroup/WalletsGroup.test.tsx b/src/domains/wallet/components/WalletsGroup/WalletsGroup.test.tsx index ad36900451..3bc250c167 100644 --- a/src/domains/wallet/components/WalletsGroup/WalletsGroup.test.tsx +++ b/src/domains/wallet/components/WalletsGroup/WalletsGroup.test.tsx @@ -123,17 +123,14 @@ describe("WalletsGroup", () => { const toggleArkMainnet = screen.getAllByTestId("Accordion__toggle")[0]; const toggleArkDevnet = screen.getAllByTestId("Accordion__toggle")[1]; - expect(screen.queryByText(wallets[2].address())).not.toBeInTheDocument(); - - await userEvent.click(toggleArkMainnet); + + expect(screen.getAllByText(wallets[2].address())[0]).toBeInTheDocument(); expect(screen.getAllByTestId("WalletsGroupHeader")[0].classList.contains("md:border-b")).toBeTruthy(); expect(screen.queryAllByTestId("WalletsGroupHeader")[1].classList.contains("border-b")).toBeFalsy(); - expect(screen.queryByText(wallets[0].alias()!)).not.toBeInTheDocument(); - expect(screen.getByText(wallets[2].address())).toBeInTheDocument(); - - await userEvent.click(toggleArkDevnet); + expect(screen.getAllByText(wallets[0].alias()!)[0]).toBeInTheDocument(); + expect(screen.getAllByText(wallets[2].address())[0]).toBeInTheDocument(); expect(screen.getAllByText(wallets[0].alias()!)[0]).toBeInTheDocument(); @@ -349,10 +346,13 @@ describe("WalletsGroup", () => { }, ); - await userEvent.click(screen.getAllByTestId("Accordion__toggle")[0]); - // eslint-disable-next-line testing-library/no-node-access - expect(screen.getAllByTestId("CurrencyCell")[0].querySelector(".react-loading-skeleton")).toBeInTheDocument(); + const currencyCell = screen.getAllByTestId("CurrencyCell")[0]; + expect(currencyCell).toBeInTheDocument(); + + const skeletons = currencyCell.querySelectorAll(".react-loading-skeleton"); + expect(skeletons.length).toBeGreaterThan(0); + expect(skeletons[0]).toBeInTheDocument(); expect(asFragment()).toMatchSnapshot(); diff --git a/src/domains/wallet/components/WalletsGroup/__snapshots__/WalletsGroup.test.tsx.snap b/src/domains/wallet/components/WalletsGroup/__snapshots__/WalletsGroup.test.tsx.snap index b3ebd8a478..25b8b98e87 100644 --- a/src/domains/wallet/components/WalletsGroup/__snapshots__/WalletsGroup.test.tsx.snap +++ b/src/domains/wallet/components/WalletsGroup/__snapshots__/WalletsGroup.test.tsx.snap @@ -256,18 +256,18 @@ exports[`WalletsGroup > should handle list wallet click 1`] = ` data-testid="NetworkWalletsGroupList" >
    should handle list wallet click 1`] = `
    @@ -486,258 +486,12740 @@ exports[`WalletsGroup > should handle list wallet click 1`] = `
    -
    -
    -
    -
    - - - -
    -
    -
    -
    -
    - - - -
    -
    -
    -
    - - -
    - +
    + +
    +
    + + +
    +
    + Info +
    +
    + + +
    +
    + Balance +
    +
    + +
    +
    + + +
    +
    + Currency +
    +
    + +
    +
    + + + + + + + - - N/A - - -
    -
    -
    -
    -
    -
    - +
    +
    +
    +
    + + + +
    +
    +
    +
    + + +
    +
    +
    + + + AAA + + +
    +
    +
    + + +
    +
    +
    + + + AAA + + + + AdVSe37niA3uFUPgCgMUH2tMsHF4LpLoiX + + +
    +
    +
    + + +
    +
    + + + ‌ + +
    +
    +
    +
    + + +
    + + 50,114.21127898 ARK + +
    + + +
    + + 0 BTC + +
    + + +
    +
    + +
    +
    +
    + +
    +
    + + + + +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    + +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    + Address +
    +
    + +
    +
    +
    +
    +
    + Info +
    +
    +
    +
    +
    + Balance +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + AAA + + + + AdVSe37niA3uFUPgCgMUH2tMsHF4LpLoiX + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 50,114.21127898 ARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + Show + +
    +
    +
    + +
    +
    +
    + + + Records + +
    + +
    +
    +
    +
    + +`; + +exports[`WalletsGroup > should render GroupNetworkTotal with amounts 1`] = ` + +
    + + + 50,205.64217699 DARK + + + + + N/A + + +
    + +
    + + + 50,205.64217699 ARK + + + + + 0 BTC + + +
    + +
    +`; + +exports[`WalletsGroup > should render group with different widths 1`] = ` + +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    + +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    + Address +
    +
    + +
    +
    +
    +
    +
    + Info +
    +
    +
    +
    +
    + Balance +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 2 + + + + D5sRKWckH4rE1hQ9eeMeHAepgyC3cvJtwb + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 57.68 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + +`; + +exports[`WalletsGroup > should render group with different widths 2`] = ` + +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    + +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    + Address +
    +
    + +
    +
    +
    +
    +
    + Info +
    +
    +
    +
    +
    + Balance +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 2 + + + + D5sRKWckH4rE1hQ9eeMeHAepgyC3cvJtwb + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 57.68 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + +`; + +exports[`WalletsGroup > should render group with different widths 3`] = ` + +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    + +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    + Address +
    +
    + +
    +
    +
    +
    +
    + Info +
    +
    +
    +
    +
    + Balance +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 2 + + + + D5sRKWckH4rE1hQ9eeMeHAepgyC3cvJtwb + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 57.68 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + +`; + +exports[`WalletsGroup > should render with dark mode = false 1`] = ` + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    + +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    + Address +
    +
    + +
    +
    +
    +
    +
    + Info +
    +
    +
    +
    +
    + Balance +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + AdVSe37niA3uFUPgCgMUH2tMsHF4LpLoiX + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 50,114.21127898 ARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    + +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    + Address +
    +
    + +
    +
    +
    +
    +
    + Info +
    +
    +
    +
    +
    + Balance +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + Show + +
    +
    +
    + +
    +
    +
    + + + Records + +
    + +
    +
    +
    +
    + +`; + +exports[`WalletsGroup > should render with dark mode = true 1`] = ` + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    + +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    + Address +
    +
    + +
    +
    +
    +
    +
    + Info +
    +
    +
    +
    +
    + Balance +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + AdVSe37niA3uFUPgCgMUH2tMsHF4LpLoiX + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 50,114.21127898 ARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    + +
    +
    +
    + should handle list wallet click 1`] = ` xmlns="http://www.w3.org/2000/svg" y="0" > - - + + +
    +
    +
    +
    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    + Address +
    +
    + +
    +
    +
    +
    +
    + Info +
    +
    +
    +
    +
    + Balance +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + Show + +
    +
    +
    + +
    +
    +
    + + + Records +
    -
    -
    -
    -
    - -`; - -exports[`WalletsGroup > should render GroupNetworkTotal with amounts 1`] = ` - -
    - - - 50,205.64217699 DARK - - - - - N/A - - -
    - -
    - - - 50,205.64217699 ARK - - - - - 0 BTC - - -
    -
    `; -exports[`WalletsGroup > should render group with different widths 1`] = ` +exports[`WalletsGroup > should show skeleton when syncing exchange rates 1`] = `
    - - - + + + +
    -
    - +
    +
    +
    + - - ‌ - -
    - + +
    - +
    +
    +
    - -
    -
    -
    -
    -
    - - - +
    + + + ‌ + +
    +
    +
    + + +
    +
    + +
    +
    +
    + +
    +
    + + + +
    -
    - -`; - -exports[`WalletsGroup > should render group with different widths 2`] = ` - -
    -
    -
    - - - -
    -
    -
    - -
    - - Total Balance - - + - +
    +
    -
    -
    -
    -
    -
    - - - -
    -
    -
    -
    -
    - -`; - -exports[`WalletsGroup > should render group with different widths 3`] = ` - -
    -
    -
    -
    +
    -
    - +
    +
    +
    +
    - - Total Balance - - -
    - + - +
    +
    +
    + +
    +
    +
    + + +
    +
    + Name +
    +
    + +
    +
    + + +
    +
    + Address +
    +
    + +
    +
    + + - ‌ -
    -
    -
    -
    -
    -
    - - -
    -
    -
    -
    -
    -
    - - - -
    -
    -
    -
    -
    - -`; - -exports[`WalletsGroup > should render with dark mode = false 1`] = ` - -
    -
    -
    -
    -
    -
    -
    - - - -
    -
    -
    - - -
    - - Total Balance - - -
    - +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    + + +
    +
    + + + ‌ + +
    +
    +
    +
    + + +
    + + 33.75089801 DARK + +
    + + - - ‌ - -
    - -
    - -
    - -
    -
    -
    -
    -
    - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - - - -
    -
    -
    -
    -
    - +
    +
    + + + +
    +
    +
    +
    + + - - -
    -
    -
    -
    - -
    -
    -
    - -
    - +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    + + +
    +
    + + + ‌ + +
    +
    +
    +
    + + +
    + + 33.75089801 DARK + +
    + + +
    + + N/A + +
    + + +
    +
    + +
    +
    +
    + +
    +
    + + + - - ‌ - -
    - -
    -
    - - - N/A - - -
    - -
    - - Total Balance - - -
    +
    + + + ARK Wallet 1 + + +
    +
    +
    + + +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    + + +
    +
    + + + ‌ + +
    +
    +
    +
    + + +
    + + 33.75089801 DARK + +
    + + +
    + + N/A + +
    + + +
    +
    + +
    +
    +
    + +
    +
    + + + - - - ‌ - -
    -
    -
    - -
    - -
    -
    -
    -
    -
    - - - -
    -
    -
    -
    -
    -
    - -`; - -exports[`WalletsGroup > should render with dark mode = true 1`] = ` - -
    -
    -
    -
    -
    -
    -
    - - - -
    -
    -
    - - - -
    - - +
    +
    + + + ARK Wallet 1 + + +
    +
    +
    + + - ‌ -
    -
    - -
    - -
    - -
    - - Total Balance - - -
    + N/A + +
    + + +
    +
    + +
    +
    +
    + +
    +
    + + + - - - ‌ - -
    -
    -
    -
    -
    - + + - - ‌ - -
    - -
    - -
    -
    -
    -
    -
    -
    - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - - - -
    -
    -
    -
    -
    - - - -
    -
    -
    -
    - -
    -
    -
    -
    - -
    - - +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + +
    +
    +
    + + +
    +
    + + + ‌ + +
    +
    +
    +
    + + +
    + + 33.75089801 DARK + +
    + + - ‌ -
    -
    - -
    - - - - N/A - - -
    - - -
    - -
    -
    -
    -
    -
    - - - -
    -
    -
    -
    -
    -
    - -`; - -exports[`WalletsGroup > should show skeleton when syncing exchange rates 1`] = ` - -
    -
    -
    -
    -
    -
    -
    - - - -
    -
    -
    - - -
    - -
    -
    -
    -
    -
    - - - -
    -
    -
    -
    -
    -
    -
    - - + + N/A + + + + + - + + + + + + + - + + - - should show skeleton when syncing exchange rates 1`] = ` class="no-ligatures css-9nx3be" data-testid="TruncateEnd" > - New Name + ARK Wallet 1 @@ -3244,14 +20226,14 @@ exports[`WalletsGroup > should show skeleton when syncing exchange rates 1`] = ` class="no-ligatures css-9nx3be" data-testid="TruncateEnd" > - New Name + ARK Wallet 1 - AdVSe37niA3uFUPgCgMUH2tMsHF4LpLoiX + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + + + + + + + +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    + + + +
    +
    +
    +
    + +
    +
    +
    +
    + + + ARK Wallet 1 + + + + D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD + +
    +
    +
    +
    +
    +
    + + + ‌ + +
    +
    +
    +
    +
    +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    +
    +
    - -
    - Name -
    -
    - -
    + -
    -
    - Info -
    -
    -
    +
    - Balance -
    -
    - -
    - Currency -
    -
    - + ‌ + +
    +
    - -
    + +
    + + 33.75089801 DARK + +
    +
    +
    +
    + +
    +
    - Actions +
    - +
    +
    +
    +
    +
    + + Show + +
    +
    +
    + +
    +
    +
    + + + Records +
    -
    -
    -
    -
    -
    -
    -
    -
    - - - + + First +
    -
    -
    +
    -
    - -
    -
    -
    - - - 50,519.2220551 DARK - - - - - N/A - - -
    - -
    -
    -
    -
    - - - -
    -
    +
    + +
    From fbd32fff53c7214099ece390a0b8583392a77280 Mon Sep 17 00:00:00 2001 From: Juan Patricio Marroquin Date: Wed, 13 Nov 2024 11:10:30 -0500 Subject: [PATCH 6/8] fix unit tests --- .../components/WalletsGroup/WalletsGroup.test.tsx | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/domains/wallet/components/WalletsGroup/WalletsGroup.test.tsx b/src/domains/wallet/components/WalletsGroup/WalletsGroup.test.tsx index 3bc250c167..cca4cfea03 100644 --- a/src/domains/wallet/components/WalletsGroup/WalletsGroup.test.tsx +++ b/src/domains/wallet/components/WalletsGroup/WalletsGroup.test.tsx @@ -120,10 +120,6 @@ describe("WalletsGroup", () => { expect(asFragment()).toMatchSnapshot(); - const toggleArkMainnet = screen.getAllByTestId("Accordion__toggle")[0]; - const toggleArkDevnet = screen.getAllByTestId("Accordion__toggle")[1]; - - expect(screen.getAllByText(wallets[2].address())[0]).toBeInTheDocument(); expect(screen.getAllByTestId("WalletsGroupHeader")[0].classList.contains("md:border-b")).toBeTruthy(); @@ -326,7 +322,7 @@ describe("WalletsGroup", () => { useDisplayWalletsSpy.mockRestore(); }); - it("should show skeleton when syncing exchange rates", async () => { + it("should show skeleton when syncing exchange rates", () => { const useConfigurationSpy = vi .spyOn(configurationModule, "useConfiguration") .mockReturnValue({ profileIsSyncingExchangeRates: true }); @@ -348,11 +344,12 @@ describe("WalletsGroup", () => { // eslint-disable-next-line testing-library/no-node-access const currencyCell = screen.getAllByTestId("CurrencyCell")[0]; - expect(currencyCell).toBeInTheDocument(); + expect(currencyCell).toBeInTheDocument(); - const skeletons = currencyCell.querySelectorAll(".react-loading-skeleton"); - expect(skeletons.length).toBeGreaterThan(0); - expect(skeletons[0]).toBeInTheDocument(); + const { getAllByClassName } = within(currencyCell); + const skeletons = getAllByClassName("react-loading-skeleton"); + expect(skeletons.length).toBeGreaterThan(0); + expect(skeletons[0]).toBeInTheDocument(); expect(asFragment()).toMatchSnapshot(); From 87b785122266523aba9d3612ac5e48d811afa840 Mon Sep 17 00:00:00 2001 From: Juan Patricio Marroquin Date: Wed, 13 Nov 2024 11:21:02 -0500 Subject: [PATCH 7/8] fix: unit tests --- .../wallet/components/WalletsGroup/WalletsGroup.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/domains/wallet/components/WalletsGroup/WalletsGroup.test.tsx b/src/domains/wallet/components/WalletsGroup/WalletsGroup.test.tsx index cca4cfea03..a75b6509ac 100644 --- a/src/domains/wallet/components/WalletsGroup/WalletsGroup.test.tsx +++ b/src/domains/wallet/components/WalletsGroup/WalletsGroup.test.tsx @@ -346,8 +346,8 @@ describe("WalletsGroup", () => { const currencyCell = screen.getAllByTestId("CurrencyCell")[0]; expect(currencyCell).toBeInTheDocument(); - const { getAllByClassName } = within(currencyCell); - const skeletons = getAllByClassName("react-loading-skeleton"); + // Use querySelectorAll on the currencyCell to find elements with the class name + const skeletons = currencyCell.querySelectorAll(".react-loading-skeleton"); expect(skeletons.length).toBeGreaterThan(0); expect(skeletons[0]).toBeInTheDocument(); From 8230e50faea68a2fd82292dbc57a209832b3a029 Mon Sep 17 00:00:00 2001 From: Juan Patricio Marroquin Date: Wed, 13 Nov 2024 11:29:44 -0500 Subject: [PATCH 8/8] wip --- .../wallet/components/WalletsGroup/WalletsGroup.test.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/domains/wallet/components/WalletsGroup/WalletsGroup.test.tsx b/src/domains/wallet/components/WalletsGroup/WalletsGroup.test.tsx index a75b6509ac..1a016dd97a 100644 --- a/src/domains/wallet/components/WalletsGroup/WalletsGroup.test.tsx +++ b/src/domains/wallet/components/WalletsGroup/WalletsGroup.test.tsx @@ -342,11 +342,10 @@ describe("WalletsGroup", () => { }, ); - // eslint-disable-next-line testing-library/no-node-access const currencyCell = screen.getAllByTestId("CurrencyCell")[0]; expect(currencyCell).toBeInTheDocument(); - // Use querySelectorAll on the currencyCell to find elements with the class name + // eslint-disable-next-line testing-library/no-node-access const skeletons = currencyCell.querySelectorAll(".react-loading-skeleton"); expect(skeletons.length).toBeGreaterThan(0); expect(skeletons[0]).toBeInTheDocument();