mirror of
https://github.com/haveno-dex/haveno-ui.git
synced 2025-08-06 21:54:36 -04:00
chore: Fix snapshot tests.
This commit is contained in:
parent
397c9d2c98
commit
68d44a2d60
7 changed files with 46 additions and 15 deletions
|
@ -44,12 +44,12 @@ exports[`molecules::AddressCard > renders without exploding 1`] = `
|
||||||
class="mantine-Group-root mantine-Group-child mantine-ze53qg"
|
class="mantine-Group-root mantine-Group-child mantine-ze53qg"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
class="mantine-Text-root mantine-Anchor-root mantine-Group-child mantine-16zvpw1"
|
class="mantine-Text-root mantine-Anchor-root mantine-Group-child mantine-1yvb6qd"
|
||||||
>
|
>
|
||||||
Copy
|
Copy
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
class="mantine-Text-root mantine-Anchor-root mantine-Group-child mantine-16zvpw1"
|
class="mantine-Text-root mantine-Anchor-root mantine-Group-child mantine-1yvb6qd"
|
||||||
>
|
>
|
||||||
QR
|
QR
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -46,25 +46,25 @@ describe("organisms::MyWalletMoneroBalance", () => {
|
||||||
unmount();
|
unmount();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("contains avaliable balance, reservered funds and locked funds details", () => {
|
it("contains available balance, reservered funds and locked funds details", () => {
|
||||||
const { unmount } = render(
|
const { unmount } = render(
|
||||||
<AppProviders>
|
<AppProviders>
|
||||||
<MyWalletMoneroBalance />
|
<MyWalletMoneroBalance />
|
||||||
</AppProviders>
|
</AppProviders>
|
||||||
);
|
);
|
||||||
expect(screen.queryByTestId("avaliable-balance")).toBeInTheDocument();
|
expect(screen.queryByTestId("available-balance")).toBeInTheDocument();
|
||||||
expect(screen.queryByTestId("locked-funds")).toBeInTheDocument();
|
expect(screen.queryByTestId("locked-funds")).toBeInTheDocument();
|
||||||
expect(screen.queryByTestId("reserverd-funds")).toBeInTheDocument();
|
expect(screen.queryByTestId("reserverd-funds")).toBeInTheDocument();
|
||||||
unmount();
|
unmount();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("contains avaliable balance, reservered funds and locked funds details", () => {
|
it("contains available balance, reservered funds and locked funds details", () => {
|
||||||
const { unmount } = render(
|
const { unmount } = render(
|
||||||
<AppProviders>
|
<AppProviders>
|
||||||
<MyWalletMoneroBalance />
|
<MyWalletMoneroBalance />
|
||||||
</AppProviders>
|
</AppProviders>
|
||||||
);
|
);
|
||||||
expect(screen.queryByTestId("avaliable-balance")).toHaveTextContent(
|
expect(screen.queryByTestId("available-balance")).toHaveTextContent(
|
||||||
"835,120.34017"
|
"835,120.34017"
|
||||||
);
|
);
|
||||||
expect(screen.queryByTestId("reserverd-funds")).toHaveTextContent(
|
expect(screen.queryByTestId("reserverd-funds")).toHaveTextContent(
|
||||||
|
|
|
@ -43,12 +43,12 @@ exports[`organisms::MyWalletMoneroBalance > renders without exploding 1`] = `
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="mantine-Stack-root mantine-DetailItem-root mantine-Group-child mantine-2d5onn"
|
class="mantine-Stack-root mantine-DetailItem-root mantine-Group-child mantine-2d5onn"
|
||||||
data-testid="avaliable-balance"
|
data-testid="available-balance"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="mantine-Text-root mantine-DetailItem-label mantine-10gsq91"
|
class="mantine-Text-root mantine-DetailItem-label mantine-10gsq91"
|
||||||
>
|
>
|
||||||
Avaliable Balance
|
Available Balance
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="mantine-Text-root mantine-DetailItem-content mantine-oat2gy"
|
class="mantine-Text-root mantine-DetailItem-content mantine-oat2gy"
|
||||||
|
@ -56,6 +56,21 @@ exports[`organisms::MyWalletMoneroBalance > renders without exploding 1`] = `
|
||||||
835,120.34017
|
835,120.34017
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div
|
||||||
|
class="mantine-Stack-root mantine-DetailItem-root mantine-Group-child mantine-2d5onn"
|
||||||
|
data-testid="unreserved-funds"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="mantine-Text-root mantine-DetailItem-label mantine-10gsq91"
|
||||||
|
>
|
||||||
|
Unreserved Funds
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="mantine-Text-root mantine-DetailItem-content mantine-oat2gy"
|
||||||
|
>
|
||||||
|
90,371.161239
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div
|
<div
|
||||||
class="mantine-Stack-root mantine-DetailItem-root mantine-Group-child mantine-2d5onn"
|
class="mantine-Stack-root mantine-DetailItem-root mantine-Group-child mantine-2d5onn"
|
||||||
data-testid="reserverd-funds"
|
data-testid="reserverd-funds"
|
||||||
|
@ -63,7 +78,7 @@ exports[`organisms::MyWalletMoneroBalance > renders without exploding 1`] = `
|
||||||
<div
|
<div
|
||||||
class="mantine-Text-root mantine-DetailItem-label mantine-10gsq91"
|
class="mantine-Text-root mantine-DetailItem-label mantine-10gsq91"
|
||||||
>
|
>
|
||||||
Reservered Funds
|
Reserved Funds
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="mantine-Text-root mantine-DetailItem-content mantine-oat2gy"
|
class="mantine-Text-root mantine-DetailItem-content mantine-oat2gy"
|
||||||
|
|
|
@ -47,7 +47,7 @@ exports[`organisms::MyWalletMeneroBalanceSkeleton > renders without exploding 1`
|
||||||
<div
|
<div
|
||||||
class="mantine-Text-root mantine-DetailItem-label mantine-10gsq91"
|
class="mantine-Text-root mantine-DetailItem-label mantine-10gsq91"
|
||||||
>
|
>
|
||||||
Avaliable Balance
|
Available Balance
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="mantine-Text-root mantine-DetailItem-content mantine-oat2gy"
|
class="mantine-Text-root mantine-DetailItem-content mantine-oat2gy"
|
||||||
|
@ -63,7 +63,23 @@ exports[`organisms::MyWalletMeneroBalanceSkeleton > renders without exploding 1`
|
||||||
<div
|
<div
|
||||||
class="mantine-Text-root mantine-DetailItem-label mantine-10gsq91"
|
class="mantine-Text-root mantine-DetailItem-label mantine-10gsq91"
|
||||||
>
|
>
|
||||||
Reservered Funds
|
Unreserved Funds
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="mantine-Text-root mantine-DetailItem-content mantine-oat2gy"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="mantine-Skeleton-root mantine-Skeleton-visible mantine-12edv24"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="mantine-Stack-root mantine-DetailItem-root mantine-Group-child mantine-2d5onn"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="mantine-Text-root mantine-DetailItem-label mantine-10gsq91"
|
||||||
|
>
|
||||||
|
Reserved Funds
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="mantine-Text-root mantine-DetailItem-content mantine-oat2gy"
|
class="mantine-Text-root mantine-DetailItem-content mantine-oat2gy"
|
||||||
|
|
|
@ -28,12 +28,12 @@ exports[`organisms::MyWalletPrimaryAddress > renders without exploding 1`] = `
|
||||||
class="mantine-Group-root mantine-Group-child mantine-ze53qg"
|
class="mantine-Group-root mantine-Group-child mantine-ze53qg"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
class="mantine-Text-root mantine-Anchor-root mantine-Group-child mantine-16zvpw1"
|
class="mantine-Text-root mantine-Anchor-root mantine-Group-child mantine-1yvb6qd"
|
||||||
>
|
>
|
||||||
Copy
|
Copy
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
class="mantine-Text-root mantine-Anchor-root mantine-Group-child mantine-16zvpw1"
|
class="mantine-Text-root mantine-Anchor-root mantine-Group-child mantine-1yvb6qd"
|
||||||
>
|
>
|
||||||
QR
|
QR
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
exports[`organisms::MyWalletMoneroBalance > renders without exploding. 1`] = `
|
exports[`organisms::MyWalletMoneroBalance > renders without exploding. 1`] = `
|
||||||
<DocumentFragment>
|
<DocumentFragment>
|
||||||
<table
|
<table
|
||||||
class="mantine-Table-root mantine-16jrhzw"
|
class="mantine-Table-root mantine-u2os4d"
|
||||||
>
|
>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -66,7 +66,7 @@ export enum LangKeys {
|
||||||
MyWalletSendFieldAddress = "myWallet.send.addressField",
|
MyWalletSendFieldAddress = "myWallet.send.addressField",
|
||||||
MyWalletSendFieldAddressPlaceholder = "myWallet.send.addressFieldPlaceholder",
|
MyWalletSendFieldAddressPlaceholder = "myWallet.send.addressFieldPlaceholder",
|
||||||
MyWalletReceiveTitle = "myWallet.receive.receiveTitle",
|
MyWalletReceiveTitle = "myWallet.receive.receiveTitle",
|
||||||
MyWalletMoneroAvailableBalance = "myWallet.monero.avaliableBalance",
|
MyWalletMoneroAvailableBalance = "myWallet.monero.availableBalance",
|
||||||
MyWalletMoneroReservedFunds = "myWallet.monero.reserveredFunds",
|
MyWalletMoneroReservedFunds = "myWallet.monero.reserveredFunds",
|
||||||
MyWalletMoneroUnreservedFunds = "myWallet.monero.unreservedFunds",
|
MyWalletMoneroUnreservedFunds = "myWallet.monero.unreservedFunds",
|
||||||
MyWalletMoneroLockedFunds = "myWallet.monero.lockedFunds",
|
MyWalletMoneroLockedFunds = "myWallet.monero.lockedFunds",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue