Changeset View
Changeset View
Standalone View
Standalone View
cashtab/src/components/Home/Tx/__tests__/index.test.js
| Show First 20 Lines • Show All 429 Lines • ▼ Show 20 Lines | it('Received slpv1 fungible token', async () => { | ||||
| ), | ), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the token name | // We see the token name | ||||
| expect( | expect( | ||||
| screen.getByText('Covid19 Lifetime Immunity'), | screen.getByText('Covid19 Lifetime Immunity'), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the token ticker in parenthesis in the summary column | // We see the expected token action text (ticker in combined TokenDesc) | ||||
| expect(screen.getByText('(NOCOVID)')).toBeInTheDocument(); | |||||
| // We see the expected token action text for a received SLPv1 fungible token tx | |||||
| expect(screen.getByText('Received 12 NOCOVID')).toBeInTheDocument(); | expect(screen.getByText('Received 12 NOCOVID')).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Received slpv1 fungible token with no token info in cache', async () => { | it('Received slpv1 fungible token with no token info in cache', async () => { | ||||
| render( | render( | ||||
| <MemoryRouter> | <MemoryRouter> | ||||
| <ThemeProvider theme={theme}> | <ThemeProvider theme={theme}> | ||||
| <Tx | <Tx | ||||
| tx={{ | tx={{ | ||||
| Show All 37 Lines | it('Received slpv1 fungible token with no token info in cache', async () => { | ||||
| ), | ), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We do not see the token name | // We do not see the token name | ||||
| expect( | expect( | ||||
| screen.queryByText('Covid19 Lifetime Immunity'), | screen.queryByText('Covid19 Lifetime Immunity'), | ||||
| ).not.toBeInTheDocument(); | ).not.toBeInTheDocument(); | ||||
| // We do not see the token ticker in parenthesis in the summary column | // We see the expected token action with no quantity or ticker (no cache) | ||||
| expect(screen.queryByText('(NOCOVID)')).not.toBeInTheDocument(); | |||||
| // We see the expected token action with no quantity | |||||
| expect(screen.getByText('Received')).toBeInTheDocument(); | expect(screen.getByText('Received')).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Sent slpv1 fungible token', async () => { | it('Sent slpv1 fungible token', async () => { | ||||
| render( | render( | ||||
| <MemoryRouter> | <MemoryRouter> | ||||
| <ThemeProvider theme={theme}> | <ThemeProvider theme={theme}> | ||||
| <Tx | <Tx | ||||
| tx={{ | tx={{ | ||||
| Show All 38 Lines | it('Sent slpv1 fungible token', async () => { | ||||
| ), | ), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the token name | // We see the token name | ||||
| expect( | expect( | ||||
| screen.getByText('Covid19 Lifetime Immunity'), | screen.getByText('Covid19 Lifetime Immunity'), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the token ticker in parenthesis in the summary column | // We see the expected token action text (ticker in combined TokenDesc) | ||||
| expect(screen.getByText('(NOCOVID)')).toBeInTheDocument(); | |||||
| // We see the expected token action text for a received SLPv1 fungible token tx | |||||
| expect(screen.getByText('Sent 17 NOCOVID')).toBeInTheDocument(); | expect(screen.getByText('Sent 17 NOCOVID')).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Sent slpv1 fungible token with no token info in cache', async () => { | it('Sent slpv1 fungible token with no token info in cache', async () => { | ||||
| render( | render( | ||||
| <MemoryRouter> | <MemoryRouter> | ||||
| <ThemeProvider theme={theme}> | <ThemeProvider theme={theme}> | ||||
| <Tx | <Tx | ||||
| tx={{ | tx={{ | ||||
| Show All 37 Lines | it('Sent slpv1 fungible token with no token info in cache', async () => { | ||||
| ), | ), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We do not see the token name | // We do not see the token name | ||||
| expect( | expect( | ||||
| screen.queryByText('Covid19 Lifetime Immunity'), | screen.queryByText('Covid19 Lifetime Immunity'), | ||||
| ).not.toBeInTheDocument(); | ).not.toBeInTheDocument(); | ||||
| // We do not see the token ticker in parenthesis in the summary column | // We see the expected token action with no amount or ticker (no cache) | ||||
| expect(screen.queryByText('(NOCOVID)')).not.toBeInTheDocument(); | |||||
| // We see the expected token action with no amount | |||||
| expect(screen.getByText('Sent')).toBeInTheDocument(); | expect(screen.getByText('Sent')).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('slpv1 fungible token GENESIS', async () => { | it('slpv1 fungible token GENESIS', async () => { | ||||
| render( | render( | ||||
| <MemoryRouter> | <MemoryRouter> | ||||
| <ThemeProvider theme={theme}> | <ThemeProvider theme={theme}> | ||||
| <Tx | <Tx | ||||
| tx={{ ...genesisTx.tx, parsed: genesisTx.parsed }} | tx={{ ...genesisTx.tx, parsed: genesisTx.parsed }} | ||||
| Show All 37 Lines | it('slpv1 fungible token GENESIS', async () => { | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the genesis icon | // We see the genesis icon | ||||
| expect(screen.getByTitle('tx-genesis')).toBeInTheDocument(); | expect(screen.getByTitle('tx-genesis')).toBeInTheDocument(); | ||||
| // We see the token name | // We see the token name | ||||
| expect(screen.getByText('UpdateTest')).toBeInTheDocument(); | expect(screen.getByText('UpdateTest')).toBeInTheDocument(); | ||||
| // We see the token ticker in parenthesis in the summary column | // We see the expected token action text (ticker in combined TokenDesc) | ||||
| expect(screen.getByText('(UDT)')).toBeInTheDocument(); | |||||
| // We see the expected token action text for a received SLPv1 fungible token tx | |||||
| expect(screen.getByText('Created 777.7777777 UDT')).toBeInTheDocument(); | expect(screen.getByText('Created 777.7777777 UDT')).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('slpv1 fungible token GENESIS with no token info in cache', async () => { | it('slpv1 fungible token GENESIS with no token info in cache', async () => { | ||||
| render( | render( | ||||
| <MemoryRouter> | <MemoryRouter> | ||||
| <ThemeProvider theme={theme}> | <ThemeProvider theme={theme}> | ||||
| <Tx | <Tx | ||||
| tx={{ ...genesisTx.tx, parsed: genesisTx.parsed }} | tx={{ ...genesisTx.tx, parsed: genesisTx.parsed }} | ||||
| Show All 36 Lines | it('slpv1 fungible token GENESIS with no token info in cache', async () => { | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the genesis icon | // We see the genesis icon | ||||
| expect(screen.getByTitle('tx-genesis')).toBeInTheDocument(); | expect(screen.getByTitle('tx-genesis')).toBeInTheDocument(); | ||||
| // We do not see the token name | // We do not see the token name | ||||
| expect(screen.queryByText('UpdateTest')).not.toBeInTheDocument(); | expect(screen.queryByText('UpdateTest')).not.toBeInTheDocument(); | ||||
| // We do not see the token ticker in parenthesis in the summary column | // We see the expected token action without quantity or ticker (no cache) | ||||
| expect(screen.queryByText('(UDT)')).not.toBeInTheDocument(); | |||||
| // We see the expected token action presented without quantity or other token info | |||||
| expect(screen.getByText('Created')).toBeInTheDocument(); | expect(screen.getByText('Created')).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Received slpv1 fungible token amount less than 1 with 9 decimals', async () => { | it('Received slpv1 fungible token amount less than 1 with 9 decimals', async () => { | ||||
| render( | render( | ||||
| <MemoryRouter> | <MemoryRouter> | ||||
| <ThemeProvider theme={theme}> | <ThemeProvider theme={theme}> | ||||
| <Tx | <Tx | ||||
| tx={{ | tx={{ | ||||
| Show All 37 Lines | it('Received slpv1 fungible token amount less than 1 with 9 decimals', async () => { | ||||
| screen.getByAltText( | screen.getByAltText( | ||||
| 'icon for acba1d7f354c6d4d001eb99d31de174e5cea8a31d692afd6e7eb8474ad541f55', | 'icon for acba1d7f354c6d4d001eb99d31de174e5cea8a31d692afd6e7eb8474ad541f55', | ||||
| ), | ), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the token name | // We see the token name | ||||
| expect(screen.getByText('CashTabBits')).toBeInTheDocument(); | expect(screen.getByText('CashTabBits')).toBeInTheDocument(); | ||||
| // We see the token ticker in parenthesis in the summary column | // We see the expected token action text (ticker in combined TokenDesc) | ||||
| expect(screen.getByText('(CTB)')).toBeInTheDocument(); | |||||
| // We see the expected token action text for a received SLPv1 fungible token tx | |||||
| expect(screen.getByText('Received .123456789 CTB')).toBeInTheDocument(); | expect(screen.getByText('Received .123456789 CTB')).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Received slpv1 fungible token with 9 decimals with no token info in cache', async () => { | it('Received slpv1 fungible token with 9 decimals with no token info in cache', async () => { | ||||
| render( | render( | ||||
| <MemoryRouter> | <MemoryRouter> | ||||
| <ThemeProvider theme={theme}> | <ThemeProvider theme={theme}> | ||||
| <Tx | <Tx | ||||
| tx={{ | tx={{ | ||||
| Show All 36 Lines | it('Received slpv1 fungible token with 9 decimals with no token info in cache', async () => { | ||||
| screen.getByAltText( | screen.getByAltText( | ||||
| 'icon for acba1d7f354c6d4d001eb99d31de174e5cea8a31d692afd6e7eb8474ad541f55', | 'icon for acba1d7f354c6d4d001eb99d31de174e5cea8a31d692afd6e7eb8474ad541f55', | ||||
| ), | ), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We do not see the token name | // We do not see the token name | ||||
| expect(screen.queryByText('CashTabBits')).not.toBeInTheDocument(); | expect(screen.queryByText('CashTabBits')).not.toBeInTheDocument(); | ||||
| // We do not see the token ticker in parenthesis in the summary column | // We see the expected token action without quantity or ticker (no cache) | ||||
| expect(screen.queryByText('(CTB)')).not.toBeInTheDocument(); | |||||
| // We see the expected token action text without quantity or ticker | |||||
| expect(screen.getByText('Received')).toBeInTheDocument(); | expect(screen.getByText('Received')).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Received airdrop with msg (legacy push) with no token info in cache', async () => { | it('Received airdrop with msg (legacy push) with no token info in cache', async () => { | ||||
| render( | render( | ||||
| <MemoryRouter> | <MemoryRouter> | ||||
| <ThemeProvider theme={theme}> | <ThemeProvider theme={theme}> | ||||
| <Tx | <Tx | ||||
| tx={{ | tx={{ | ||||
| ▲ Show 20 Lines • Show All 316 Lines • ▼ Show 20 Lines | it('Burn slpv1 fungible token', async () => { | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the token burn icon | // We see the token burn icon | ||||
| expect(screen.getByTitle('tx-token-burn')).toBeInTheDocument(); | expect(screen.getByTitle('tx-token-burn')).toBeInTheDocument(); | ||||
| // We see the token name | // We see the token name | ||||
| expect(screen.getByText('Lambda Variant Variants')).toBeInTheDocument(); | expect(screen.getByText('Lambda Variant Variants')).toBeInTheDocument(); | ||||
| // We see the token ticker in parenthesis in the summary column | // We see the expected token action text (ticker in combined TokenDesc) | ||||
| expect(screen.getByText('(LVV)')).toBeInTheDocument(); | |||||
| // We see the expected token action text for a received SLPv1 fungible token tx | |||||
| expect(screen.getByText('Burned 12 LVV')).toBeInTheDocument(); | expect(screen.getByText('Burned 12 LVV')).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Burn slpv1 fungible token with no token info in cache', async () => { | it('Burn slpv1 fungible token with no token info in cache', async () => { | ||||
| render( | render( | ||||
| <MemoryRouter> | <MemoryRouter> | ||||
| <ThemeProvider theme={theme}> | <ThemeProvider theme={theme}> | ||||
| <Tx | <Tx | ||||
| tx={{ ...tokenBurn.tx, parsed: tokenBurn.parsed }} | tx={{ ...tokenBurn.tx, parsed: tokenBurn.parsed }} | ||||
| Show All 38 Lines | it('Burn slpv1 fungible token with no token info in cache', async () => { | ||||
| // We see the token burn icon | // We see the token burn icon | ||||
| expect(screen.getByTitle('tx-token-burn')).toBeInTheDocument(); | expect(screen.getByTitle('tx-token-burn')).toBeInTheDocument(); | ||||
| // We do not see the token name | // We do not see the token name | ||||
| expect( | expect( | ||||
| screen.queryByText('Lambda Variant Variants'), | screen.queryByText('Lambda Variant Variants'), | ||||
| ).not.toBeInTheDocument(); | ).not.toBeInTheDocument(); | ||||
| // We do notsee the token ticker in parenthesis in the summary column | // We see the expected token action without ticker (no cache) | ||||
| expect(screen.queryByText('(LVV)')).not.toBeInTheDocument(); | |||||
| // We see the expected token action text for a received SLPv1 fungible token tx | |||||
| expect(screen.getByText('Burned')).toBeInTheDocument(); | expect(screen.getByText('Burned')).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Burn slpv1 fungible token with 9 decimals', async () => { | it('Burn slpv1 fungible token with 9 decimals', async () => { | ||||
| render( | render( | ||||
| <MemoryRouter> | <MemoryRouter> | ||||
| <ThemeProvider theme={theme}> | <ThemeProvider theme={theme}> | ||||
| <Tx | <Tx | ||||
| tx={{ | tx={{ | ||||
| ▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | it('Burn slpv1 fungible token with 9 decimals', async () => { | ||||
| // We see the token name | // We see the token name | ||||
| expect( | expect( | ||||
| screen.getByText( | screen.getByText( | ||||
| 'Test Token With Exceptionally Long Name For CSS And Style Revisions', | 'Test Token With Exceptionally Long Name For CSS And Style Revisions', | ||||
| ), | ), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the token ticker in parenthesis in the summary column | // We see the expected token action text (ticker in combined TokenDesc) | ||||
| expect(screen.getByText('(WDT)')).toBeInTheDocument(); | |||||
| // We see the expected token action text for a received SLPv1 fungible token tx | |||||
| expect(screen.getByText('Burned .1234567 WDT')).toBeInTheDocument(); | expect(screen.getByText('Burned .1234567 WDT')).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Swap tx', async () => { | it('Swap tx', async () => { | ||||
| render( | render( | ||||
| <MemoryRouter> | <MemoryRouter> | ||||
| <ThemeProvider theme={theme}> | <ThemeProvider theme={theme}> | ||||
| <Tx | <Tx | ||||
| tx={{ ...swapTx.tx, parsed: swapTx.parsed }} | tx={{ ...swapTx.tx, parsed: swapTx.parsed }} | ||||
| ▲ Show 20 Lines • Show All 547 Lines • ▼ Show 20 Lines | it('slpv1 fungible token MINT', async () => { | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the mint icon | // We see the mint icon | ||||
| expect(screen.getByTitle('tx-mint')).toBeInTheDocument(); | expect(screen.getByTitle('tx-mint')).toBeInTheDocument(); | ||||
| // We see the token name | // We see the token name | ||||
| expect(screen.getByText('Cachet')).toBeInTheDocument(); | expect(screen.getByText('Cachet')).toBeInTheDocument(); | ||||
| // We see the token ticker in parenthesis in the summary column | // We see the expected token action text (ticker in combined TokenDesc) | ||||
| expect(screen.getByText('(CACHET)')).toBeInTheDocument(); | |||||
| // We see the expected token action text for a received SLPv1 fungible token tx | |||||
| expect(screen.getByText('Minted 1.00 CACHET')).toBeInTheDocument(); | expect(screen.getByText('Minted 1.00 CACHET')).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('slpv1 fungible token MINT with no token info in cache', async () => { | it('slpv1 fungible token MINT with no token info in cache', async () => { | ||||
| render( | render( | ||||
| <MemoryRouter> | <MemoryRouter> | ||||
| <ThemeProvider theme={theme}> | <ThemeProvider theme={theme}> | ||||
| <Tx | <Tx | ||||
| tx={{ ...SlpV1Mint.tx, parsed: SlpV1Mint.parsed }} | tx={{ ...SlpV1Mint.tx, parsed: SlpV1Mint.parsed }} | ||||
| Show All 32 Lines | it('slpv1 fungible token MINT with no token info in cache', async () => { | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the mint icon | // We see the mint icon | ||||
| expect(screen.getByTitle('tx-mint')).toBeInTheDocument(); | expect(screen.getByTitle('tx-mint')).toBeInTheDocument(); | ||||
| // We do not see the token name | // We do not see the token name | ||||
| expect(screen.queryByText('Cachet')).not.toBeInTheDocument(); | expect(screen.queryByText('Cachet')).not.toBeInTheDocument(); | ||||
| // We do not see the token ticker in parenthesis in the summary column | // We see the expected token action without ticker (no cache) | ||||
| expect(screen.queryByText('(CACHET)')).not.toBeInTheDocument(); | |||||
| // We see the expected token action text for a received SLPv1 fungible token tx | |||||
| expect(screen.getByText('Minted')).toBeInTheDocument(); | expect(screen.getByText('Minted')).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Msg sent by ElectrumABC', async () => { | it('Msg sent by ElectrumABC', async () => { | ||||
| render( | render( | ||||
| <MemoryRouter> | <MemoryRouter> | ||||
| <ThemeProvider theme={theme}> | <ThemeProvider theme={theme}> | ||||
| <Tx | <Tx | ||||
| tx={{ | tx={{ | ||||
| ▲ Show 20 Lines • Show All 135 Lines • ▼ Show 20 Lines | it('Received ALP tx', async () => { | ||||
| // We see the token icon | // We see the token icon | ||||
| expect( | expect( | ||||
| screen.getByAltText( | screen.getByAltText( | ||||
| 'icon for cdcdcdcdcdc9dda4c92bb1145aa84945c024346ea66fd4b699e344e45df2e145', | 'icon for cdcdcdcdcdc9dda4c92bb1145aa84945c024346ea66fd4b699e344e45df2e145', | ||||
| ), | ), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the token name | // We see the token name | ||||
| expect(screen.getByText('Credo In Unum Deo')).toBeInTheDocument(); | expect(screen.getByText('Credo In Unum Deo')).toBeInTheDocument(); | ||||
| // We see the token ticker | |||||
| expect(screen.getByText('(CRD)')).toBeInTheDocument(); | |||||
| // We see the expected token action text for a received ALP fungible token tx | // We see the expected token action text (ticker in combined TokenDesc) | ||||
| expect(screen.getByText('Received 0.0650 CRD')).toBeInTheDocument(); | expect(screen.getByText('Received 0.0650 CRD')).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Received ALP tx with token not in cache', async () => { | it('Received ALP tx with token not in cache', async () => { | ||||
| render( | render( | ||||
| <MemoryRouter> | <MemoryRouter> | ||||
| <ThemeProvider theme={theme}> | <ThemeProvider theme={theme}> | ||||
| <Tx | <Tx | ||||
| tx={{ ...AlpTx.tx, parsed: AlpTx.parsed }} | tx={{ ...AlpTx.tx, parsed: AlpTx.parsed }} | ||||
| ▲ Show 20 Lines • Show All 176 Lines • ▼ Show 20 Lines | it('SLP1 NFT Parent fan-out tx', async () => { | ||||
| ), | ), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the token name | // We see the token name | ||||
| expect( | expect( | ||||
| screen.getByText('The Four Half-Coins of Jin-qua'), | screen.getByText('The Four Half-Coins of Jin-qua'), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the token ticker in parenthesis in the summary column | |||||
| expect(screen.getByText('(4HC)')).toBeInTheDocument(); | |||||
| // We see the Fan Out icon | // We see the Fan Out icon | ||||
| expect(screen.getByTitle('Fan Out')).toBeInTheDocument(); | expect(screen.getByTitle('Fan Out')).toBeInTheDocument(); | ||||
| // We see the expected token action text for a received SLPv1 fungible token tx | // We see the expected token action text for a received SLPv1 fungible token tx | ||||
| // TODO this should be 'Fanned out' | // TODO this should be 'Fanned out' | ||||
| // TODO calculate how many fan-out outputs were create | // TODO calculate how many fan-out outputs were create | ||||
| expect( | expect( | ||||
| screen.getByText('Created 4 NFT Mint Inputs'), | screen.getByText('Created 4 NFT Mint Inputs'), | ||||
| ▲ Show 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | it('Genesis tx of an SLP1 Child Token (i.e. "minting an NFT")', async () => { | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the NFT mint icon | // We see the NFT mint icon | ||||
| expect(screen.getByTitle('Mint NFT')).toBeInTheDocument(); | expect(screen.getByTitle('Mint NFT')).toBeInTheDocument(); | ||||
| // We see the token name | // We see the token name | ||||
| expect(screen.getByText('Wu Fang Choi')).toBeInTheDocument(); | expect(screen.getByText('Wu Fang Choi')).toBeInTheDocument(); | ||||
| // We see the token ticker in parenthesis in the summary column | // We see the expected token action text (ticker in combined TokenDesc) | ||||
| expect(screen.getByText('(WFC)')).toBeInTheDocument(); | |||||
| // We see the expected token action text for a received SLPv1 fungible token tx | |||||
| expect(screen.getByText('Minted 1 WFC')).toBeInTheDocument(); | expect(screen.getByText('Minted 1 WFC')).toBeInTheDocument(); | ||||
| // We see a second token action for burning the NFT Mint Input | // We see a second token action for burning the NFT Mint Input | ||||
| expect(screen.getByTitle('tx-token-burn')).toBeInTheDocument(); | expect(screen.getByTitle('tx-token-burn')).toBeInTheDocument(); | ||||
| expect(screen.getByText('Burned 1')).toBeInTheDocument(); | expect(screen.getByText('Burned 1')).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Genesis tx of an SLP1 Parent Token (i.e. "Creating an NFT Collection")', async () => { | it('Genesis tx of an SLP1 Parent Token (i.e. "Creating an NFT Collection")', async () => { | ||||
| render( | render( | ||||
| ▲ Show 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | it('Genesis tx of an SLP1 Parent Token (i.e. "Creating an NFT Collection")', async () => { | ||||
| expect(screen.getByTitle('tx-genesis')).toBeInTheDocument(); | expect(screen.getByTitle('tx-genesis')).toBeInTheDocument(); | ||||
| // We see the genesis action | // We see the genesis action | ||||
| expect(screen.getByText('GENESIS')).toBeInTheDocument(); | expect(screen.getByText('GENESIS')).toBeInTheDocument(); | ||||
| // We see the token name | // We see the token name | ||||
| expect(screen.getByText('The Heisman')).toBeInTheDocument(); | expect(screen.getByText('The Heisman')).toBeInTheDocument(); | ||||
| // We see the token ticker in parenthesis in the summary column | // We see the expected token action text (ticker in combined TokenDesc) | ||||
| expect(screen.getByText('(HSM)')).toBeInTheDocument(); | |||||
| // We see the expected token action text for a received SLPv1 fungible token tx | |||||
| expect(screen.getByText('Created 89 HSM')).toBeInTheDocument(); | expect(screen.getByText('Created 89 HSM')).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Sent paywall payment tx', async () => { | it('Sent paywall payment tx', async () => { | ||||
| render( | render( | ||||
| <MemoryRouter> | <MemoryRouter> | ||||
| <ThemeProvider theme={theme}> | <ThemeProvider theme={theme}> | ||||
| <Tx | <Tx | ||||
| tx={{ | tx={{ | ||||
| ▲ Show 20 Lines • Show All 305 Lines • ▼ Show 20 Lines | it('Ad setup tx for an SLP1 NFT Agora offer (cached)', async () => { | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the Agora Offer icon | // We see the Agora Offer icon | ||||
| expect(screen.getByTitle('Agora Offer')).toBeInTheDocument(); | expect(screen.getByTitle('Agora Offer')).toBeInTheDocument(); | ||||
| // We see the token name | // We see the token name | ||||
| expect(screen.getByText('Nile Kinnick')).toBeInTheDocument(); | expect(screen.getByText('Nile Kinnick')).toBeInTheDocument(); | ||||
| // We see the token ticker in parenthesis in the summary column | // We see the expected token action (ticker in combined TokenDesc) | ||||
| expect(screen.getByText('(NK)')).toBeInTheDocument(); | |||||
| // We see the expected token action for listing this NFT | |||||
| expect(screen.getByText('Listed 1 NK')).toBeInTheDocument(); | expect(screen.getByText('Listed 1 NK')).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Ad setup tx for an SLP1 NFT Agora offer (uncached)', async () => { | it('Ad setup tx for an SLP1 NFT Agora offer (uncached)', async () => { | ||||
| render( | render( | ||||
| <MemoryRouter> | <MemoryRouter> | ||||
| <ThemeProvider theme={theme}> | <ThemeProvider theme={theme}> | ||||
| <Tx | <Tx | ||||
| tx={{ | tx={{ | ||||
| Show All 37 Lines | it('Ad setup tx for an SLP1 NFT Agora offer (uncached)', async () => { | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the Agora Offer icon | // We see the Agora Offer icon | ||||
| expect(screen.getByTitle('Agora Offer')).toBeInTheDocument(); | expect(screen.getByTitle('Agora Offer')).toBeInTheDocument(); | ||||
| // We see SEND but not the token name (uncached) | // We see SEND but not the token name (uncached) | ||||
| expect(screen.getByText('Agora Offer')).toBeInTheDocument(); | expect(screen.getByText('Agora Offer')).toBeInTheDocument(); | ||||
| // We do not see the token ticker in parenthesis in the summary column | // We see the expected token action without ticker (no cache) | ||||
| expect(screen.queryByText('(NK)')).not.toBeInTheDocument(); | |||||
| // We see the expected token action text for a listed SLPv1 fungible token tx, but no quantity | |||||
| expect(screen.getByText('Listed')).toBeInTheDocument(); | expect(screen.getByText('Listed')).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Agora one-shot buy tx (token info available in cache)', async () => { | it('Agora one-shot buy tx (token info available in cache)', async () => { | ||||
| render( | render( | ||||
| <MemoryRouter> | <MemoryRouter> | ||||
| <ThemeProvider theme={theme}> | <ThemeProvider theme={theme}> | ||||
| <Tx | <Tx | ||||
| tx={{ | tx={{ | ||||
| Show All 38 Lines | it('Agora one-shot buy tx (token info available in cache)', async () => { | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the Agora Purchase icon | // We see the Agora Purchase icon | ||||
| expect(screen.getByTitle('Agora Purchase')).toBeInTheDocument(); | expect(screen.getByTitle('Agora Purchase')).toBeInTheDocument(); | ||||
| // We see the token name | // We see the token name | ||||
| expect(screen.getByText('Nile Kinnick')).toBeInTheDocument(); | expect(screen.getByText('Nile Kinnick')).toBeInTheDocument(); | ||||
| // We see the token ticker in parenthesis in the summary column | // We see the expected token action (ticker in combined TokenDesc) | ||||
| expect(screen.getByText('(NK)')).toBeInTheDocument(); | |||||
| // We see the expected token action for buying this NFT | |||||
| expect(screen.getByText('Bought 1 NK')).toBeInTheDocument(); | expect(screen.getByText('Bought 1 NK')).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Agora one-shot buy tx (uncached)', async () => { | it('Agora one-shot buy tx (uncached)', async () => { | ||||
| render( | render( | ||||
| <MemoryRouter> | <MemoryRouter> | ||||
| <ThemeProvider theme={theme}> | <ThemeProvider theme={theme}> | ||||
| <Tx | <Tx | ||||
| tx={{ | tx={{ | ||||
| ▲ Show 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | it('Agora one-shot sell tx (token info available in cache)', async () => { | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the Agora Purchase icon | // We see the Agora Purchase icon | ||||
| expect(screen.getByTitle('Agora Sale')).toBeInTheDocument(); | expect(screen.getByTitle('Agora Sale')).toBeInTheDocument(); | ||||
| // We see the token name | // We see the token name | ||||
| expect(screen.getByText('Nile Kinnick')).toBeInTheDocument(); | expect(screen.getByText('Nile Kinnick')).toBeInTheDocument(); | ||||
| // We see the token ticker in parenthesis in the summary column | // We see the expected token action (ticker in combined TokenDesc) | ||||
| expect(screen.getByText('(NK)')).toBeInTheDocument(); | |||||
| // We see the expected token action for selling this NFT | |||||
| expect(screen.getByText('Sold 1 NK')).toBeInTheDocument(); | expect(screen.getByText('Sold 1 NK')).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Agora one-shot sell tx (uncached)', async () => { | it('Agora one-shot sell tx (uncached)', async () => { | ||||
| render( | render( | ||||
| <MemoryRouter> | <MemoryRouter> | ||||
| <ThemeProvider theme={theme}> | <ThemeProvider theme={theme}> | ||||
| <Tx | <Tx | ||||
| tx={{ | tx={{ | ||||
| ▲ Show 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | it('Agora one-shot cancel tx (token info available in cache)', async () => { | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the Agora Cancel icon | // We see the Agora Cancel icon | ||||
| expect(screen.getByTitle('Agora Cancel')).toBeInTheDocument(); | expect(screen.getByTitle('Agora Cancel')).toBeInTheDocument(); | ||||
| // We see the token name | // We see the token name | ||||
| expect(screen.getByText('Nile Kinnick')).toBeInTheDocument(); | expect(screen.getByText('Nile Kinnick')).toBeInTheDocument(); | ||||
| // We see the token ticker in parenthesis in the summary column | // We see the expected token action (ticker in combined TokenDesc) | ||||
| expect(screen.getByText('(NK)')).toBeInTheDocument(); | |||||
| // We see the expected token action for canceling this NFT listing | |||||
| expect(screen.getByText('Canceled offer of 1 NK')).toBeInTheDocument(); | expect(screen.getByText('Canceled offer of 1 NK')).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Agora one-shot cancel tx (uncached)', async () => { | it('Agora one-shot cancel tx (uncached)', async () => { | ||||
| render( | render( | ||||
| <MemoryRouter> | <MemoryRouter> | ||||
| <ThemeProvider theme={theme}> | <ThemeProvider theme={theme}> | ||||
| <Tx | <Tx | ||||
| tx={{ | tx={{ | ||||
| ▲ Show 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | it('Agora partial cancel tx (token info available in cache)', async () => { | ||||
| // We see the Agora Sale icon | // We see the Agora Sale icon | ||||
| expect(screen.getByTitle('Agora Cancel')).toBeInTheDocument(); | expect(screen.getByTitle('Agora Cancel')).toBeInTheDocument(); | ||||
| // We see the token name | // We see the token name | ||||
| expect( | expect( | ||||
| screen.getByText(thisMock.cache[0][1].genesisInfo.tokenName), | screen.getByText(thisMock.cache[0][1].genesisInfo.tokenName), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the token ticker in parenthesis in the summary column | // We see the expected token action (ticker in combined TokenDesc) | ||||
| expect( | |||||
| screen.getByText( | |||||
| `(${thisMock.cache[0][1].genesisInfo.tokenTicker})`, | |||||
| ), | |||||
| ).toBeInTheDocument(); | |||||
| // We see the expected token action | |||||
| expect( | expect( | ||||
| screen.getByText( | screen.getByText( | ||||
| `Canceled offer of 855.738679296 ${thisMock.cache[0][1].genesisInfo.tokenTicker}`, | `Canceled offer of 855.738679296 ${thisMock.cache[0][1].genesisInfo.tokenTicker}`, | ||||
| ), | ), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Agora partial cancel tx (uncached)', async () => { | it('Agora partial cancel tx (uncached)', async () => { | ||||
| const thisMock = agoraPartialCancelTx; | const thisMock = agoraPartialCancelTx; | ||||
| ▲ Show 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | it('Agora partial bux buy tx renders correct bought amount (token info available in cache)', async () => { | ||||
| // We see the token name | // We see the token name | ||||
| expect( | expect( | ||||
| screen.getByText( | screen.getByText( | ||||
| agoraPartialBuxBuyTx.cache[0][1].genesisInfo.tokenName, | agoraPartialBuxBuyTx.cache[0][1].genesisInfo.tokenName, | ||||
| ), | ), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the token ticker in parenthesis in the summary column | // We see the expected token action (ticker in combined TokenDesc) | ||||
| expect( | |||||
| screen.getByText( | |||||
| `(${agoraPartialBuxBuyTx.cache[0][1].genesisInfo.tokenTicker})`, | |||||
| ), | |||||
| ).toBeInTheDocument(); | |||||
| // We see the expected token action | |||||
| const BOUGHT_AMOUNT = '14.0667'; | const BOUGHT_AMOUNT = '14.0667'; | ||||
| expect( | expect( | ||||
| screen.getByText( | screen.getByText( | ||||
| `Bought ${BOUGHT_AMOUNT} ${agoraPartialBuxBuyTx.cache[0][1].genesisInfo.tokenTicker}`, | `Bought ${BOUGHT_AMOUNT} ${agoraPartialBuxBuyTx.cache[0][1].genesisInfo.tokenTicker}`, | ||||
| ), | ), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Agora partial bux buy tx renders (uncached)', async () => { | it('Agora partial bux buy tx renders (uncached)', async () => { | ||||
| ▲ Show 20 Lines • Show All 95 Lines • ▼ Show 20 Lines | it('Agora partial bux sell tx renders correct bought amount (token info available in cache)', async () => { | ||||
| // We see the token name | // We see the token name | ||||
| expect( | expect( | ||||
| screen.getByText( | screen.getByText( | ||||
| agoraPartialBuxBuyTx.cache[0][1].genesisInfo.tokenName, | agoraPartialBuxBuyTx.cache[0][1].genesisInfo.tokenName, | ||||
| ), | ), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the token ticker in parenthesis in the summary column | // We see the expected token action (ticker in combined TokenDesc) | ||||
| expect( | |||||
| screen.getByText( | |||||
| `(${agoraPartialBuxBuyTx.cache[0][1].genesisInfo.tokenTicker})`, | |||||
| ), | |||||
| ).toBeInTheDocument(); | |||||
| // We see the expected token action | |||||
| const SOLD_AMOUNT = '14.0667'; | const SOLD_AMOUNT = '14.0667'; | ||||
| expect( | expect( | ||||
| screen.getByText( | screen.getByText( | ||||
| `Sold ${SOLD_AMOUNT} ${agoraPartialBuxBuyTx.cache[0][1].genesisInfo.tokenTicker}`, | `Sold ${SOLD_AMOUNT} ${agoraPartialBuxBuyTx.cache[0][1].genesisInfo.tokenTicker}`, | ||||
| ), | ), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Another agora partial sell tx renders correct sell amount (token info available in cache)', async () => { | it('Another agora partial sell tx renders correct sell amount (token info available in cache)', async () => { | ||||
| ▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | it('Another agora partial sell tx renders correct sell amount (token info available in cache)', async () => { | ||||
| // We see the Agora Sale icon | // We see the Agora Sale icon | ||||
| expect(screen.getByTitle('Agora Sale')).toBeInTheDocument(); | expect(screen.getByTitle('Agora Sale')).toBeInTheDocument(); | ||||
| // We see the token name | // We see the token name | ||||
| expect( | expect( | ||||
| screen.getByText(thisMock.cache[0][1].genesisInfo.tokenName), | screen.getByText(thisMock.cache[0][1].genesisInfo.tokenName), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the token ticker in parenthesis in the summary column | // We see the expected token action (ticker in combined TokenDesc) | ||||
| expect( | |||||
| screen.getByText( | |||||
| `(${thisMock.cache[0][1].genesisInfo.tokenTicker})`, | |||||
| ), | |||||
| ).toBeInTheDocument(); | |||||
| // We see the expected token action | |||||
| const SOLD_AMOUNT = '375'; | const SOLD_AMOUNT = '375'; | ||||
| expect( | expect( | ||||
| screen.getByText( | screen.getByText( | ||||
| `Sold ${SOLD_AMOUNT} ${thisMock.cache[0][1].genesisInfo.tokenTicker}`, | `Sold ${SOLD_AMOUNT} ${thisMock.cache[0][1].genesisInfo.tokenTicker}`, | ||||
| ), | ), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Agora partial CTD cancel tx renders correct bought amount (token info available in cache)', async () => { | it('Agora partial CTD cancel tx renders correct bought amount (token info available in cache)', async () => { | ||||
| ▲ Show 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | it('Agora partial CTD cancel tx renders correct bought amount (token info available in cache)', async () => { | ||||
| // We see the Agora Sale icon | // We see the Agora Sale icon | ||||
| expect(screen.getByTitle('Agora Cancel')).toBeInTheDocument(); | expect(screen.getByTitle('Agora Cancel')).toBeInTheDocument(); | ||||
| // We see the token name | // We see the token name | ||||
| expect( | expect( | ||||
| screen.getByText(thisMock.cache[0][1].genesisInfo.tokenName), | screen.getByText(thisMock.cache[0][1].genesisInfo.tokenName), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the token ticker in parenthesis in the summary column | // We see the expected token action (ticker in combined TokenDesc) | ||||
| expect( | |||||
| screen.getByText( | |||||
| `(${thisMock.cache[0][1].genesisInfo.tokenTicker})`, | |||||
| ), | |||||
| ).toBeInTheDocument(); | |||||
| // We see the expected token action | |||||
| const AMOUNT = '495'; | const AMOUNT = '495'; | ||||
| expect( | expect( | ||||
| screen.getByText( | screen.getByText( | ||||
| `Canceled offer of ${AMOUNT} ${thisMock.cache[0][1].genesisInfo.tokenTicker}`, | `Canceled offer of ${AMOUNT} ${thisMock.cache[0][1].genesisInfo.tokenTicker}`, | ||||
| ), | ), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Agora partial CTD cancel tx renders (uncached)', async () => { | it('Agora partial CTD cancel tx renders (uncached)', async () => { | ||||
| ▲ Show 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | it('Parse a mint tx for SLP NFT parent distinct from fan-out tx (token info available in cache)', async () => { | ||||
| // We DO NOT see the Fan Out icon | // We DO NOT see the Fan Out icon | ||||
| expect(screen.queryByTitle('Fan Out')).not.toBeInTheDocument(); | expect(screen.queryByTitle('Fan Out')).not.toBeInTheDocument(); | ||||
| // We see the token name | // We see the token name | ||||
| expect( | expect( | ||||
| screen.getByText(thisMock.cache[0][1].genesisInfo.tokenName), | screen.getByText(thisMock.cache[0][1].genesisInfo.tokenName), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the token ticker in parenthesis in the summary column | // We see the expected token action (ticker in combined TokenDesc) | ||||
| expect( | |||||
| screen.getByText( | |||||
| `(${thisMock.cache[0][1].genesisInfo.tokenTicker})`, | |||||
| ), | |||||
| ).toBeInTheDocument(); | |||||
| // We see the expected token action | |||||
| expect( | expect( | ||||
| screen.getByText( | screen.getByText( | ||||
| `Minted 1 ${thisMock.cache[0][1].genesisInfo.tokenTicker}`, | `Minted 1 ${thisMock.cache[0][1].genesisInfo.tokenTicker}`, | ||||
| ), | ), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Parse a mint tx for SLP NFT parent distinct from fan-out tx (uncached)', async () => { | it('Parse a mint tx for SLP NFT parent distinct from fan-out tx (uncached)', async () => { | ||||
| const thisMock = SlpNftParentMintTx; | const thisMock = SlpNftParentMintTx; | ||||
| ▲ Show 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | it('ALP burn tx', async () => { | ||||
| // We see the token burn icon | // We see the token burn icon | ||||
| expect(screen.getByTitle('tx-token-burn')).toBeInTheDocument(); | expect(screen.getByTitle('tx-token-burn')).toBeInTheDocument(); | ||||
| // We see the token name | // We see the token name | ||||
| expect( | expect( | ||||
| screen.getByText(thisMock.cache[0][1].genesisInfo.tokenName), | screen.getByText(thisMock.cache[0][1].genesisInfo.tokenName), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the token ticker in parenthesis in the summary column | // We see the expected token action text (ticker in combined TokenDesc) | ||||
| expect( | |||||
| screen.getByText( | |||||
| `(${thisMock.cache[0][1].genesisInfo.tokenTicker})`, | |||||
| ), | |||||
| ).toBeInTheDocument(); | |||||
| // We see the expected token action text for a received SLPv1 fungible token tx | |||||
| expect( | expect( | ||||
| screen.getByText( | screen.getByText( | ||||
| `Burned 1 ${thisMock.cache[0][1].genesisInfo.tokenTicker}`, | `Burned 1 ${thisMock.cache[0][1].genesisInfo.tokenTicker}`, | ||||
| ), | ), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Ad setup tx for an ALP Agora offer (cached)', async () => { | it('Ad setup tx for an ALP Agora offer (cached)', async () => { | ||||
| const thisMock = alpAgoraListingTx; | const thisMock = alpAgoraListingTx; | ||||
| Show All 40 Lines | it('Ad setup tx for an ALP Agora offer (cached)', async () => { | ||||
| // We see the Agora Offer icon | // We see the Agora Offer icon | ||||
| expect(screen.getByTitle('Agora Offer')).toBeInTheDocument(); | expect(screen.getByTitle('Agora Offer')).toBeInTheDocument(); | ||||
| // We see the token name | // We see the token name | ||||
| expect( | expect( | ||||
| screen.getByText(thisMock.cache[0][1].genesisInfo.tokenName), | screen.getByText(thisMock.cache[0][1].genesisInfo.tokenName), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the token ticker in parenthesis in the summary column | // We see the expected token action (ticker in combined TokenDesc) | ||||
| expect( | |||||
| screen.getByText( | |||||
| `(${thisMock.cache[0][1].genesisInfo.tokenTicker})`, | |||||
| ), | |||||
| ).toBeInTheDocument(); | |||||
| // We see the expected token action for listing this NFT | |||||
| expect( | expect( | ||||
| screen.getByText( | screen.getByText( | ||||
| `Listed 99,106 ${thisMock.cache[0][1].genesisInfo.tokenTicker}`, | `Listed 99,106 ${thisMock.cache[0][1].genesisInfo.tokenTicker}`, | ||||
| ), | ), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Ad setup tx for an ALP Agora offer (uncached)', async () => { | it('Ad setup tx for an ALP Agora offer (uncached)', async () => { | ||||
| const thisMock = alpAgoraListingTx; | const thisMock = alpAgoraListingTx; | ||||
| Show All 38 Lines | it('Ad setup tx for an ALP Agora offer (uncached)', async () => { | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| // We see the Agora Offer icon for the token action | // We see the Agora Offer icon for the token action | ||||
| expect(screen.getByTitle('Agora Offer')).toBeInTheDocument(); | expect(screen.getByTitle('Agora Offer')).toBeInTheDocument(); | ||||
| // We see 'Agora Offer' as the rendered tx type but not the token name (uncached) | // We see 'Agora Offer' as the rendered tx type but not the token name (uncached) | ||||
| expect(screen.getByText('Agora Offer')).toBeInTheDocument(); | expect(screen.getByText('Agora Offer')).toBeInTheDocument(); | ||||
| // We do not see the token ticker in parenthesis in the summary column | // We see the expected token action without ticker (no cache) | ||||
| expect( | |||||
| screen.queryByText( | |||||
| `(${thisMock.cache[0][1].genesisInfo.tokenTicker})`, | |||||
| ), | |||||
| ).not.toBeInTheDocument(); | |||||
| // We see the expected token action text for a listed ALP fungible token tx, but no quantity | |||||
| expect(screen.getByText('Listed')).toBeInTheDocument(); | expect(screen.getByText('Listed')).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Valid XECX tx', async () => { | it('Valid XECX tx', async () => { | ||||
| const thisMock = xecxTx; | const thisMock = xecxTx; | ||||
| render( | render( | ||||
| <MemoryRouter> | <MemoryRouter> | ||||
| <ThemeProvider theme={theme}> | <ThemeProvider theme={theme}> | ||||
| <Tx | <Tx | ||||
| ▲ Show 20 Lines • Show All 462 Lines • Show Last 20 Lines | |||||