// We can click an info icon to learn more about this token type
await userEvent.click(
await screen.findByRole('button', {
name: 'Click for more info about this token type',
}),
);
expect(
screen.getByText(
`SLP 1 fungible token. Token may be of fixed supply if no mint batons exist. If you have a mint baton, you can mint more of this token at any time. May have up to 9 decimal places.`,
// We can click an info icon to learn more about this token type
await userEvent.click(
await screen.findByRole('button', {
name: 'Click for more info about this token type',
}),
);
expect(
screen.getByText(
`SLP 1 fungible token. Token may be of fixed supply if no mint batons exist. If you have a mint baton, you can mint more of this token at any time. May have up to 9 decimal places.`,
// We can click an info icon to learn more about this token type
await userEvent.click(
await screen.findByRole('button', {
name: 'Click for more info about this token type',
}),
);
expect(
screen.getByText(
`The parent tokens for an NFT collection. Can be used to mint NFTs. No decimal places. The supply of this token is the potential quantity of NFTs which could be minted. If no mint batons exist, the supply is fixed.`,
// We can click an info icon to learn more about this token type
await userEvent.click(
await screen.findByRole('button', {
name: 'Click for more info about this token type',
}),
);
expect(
screen.getByText(
`The parent tokens for an NFT collection. Can be used to mint NFTs. No decimal places. The supply of this token is the potential quantity of NFTs which could be minted. If no mint batons exist, the supply is fixed.`,
// We can click an info icon to learn more about this token type
await userEvent.click(
await screen.findByRole('button', {
name: 'Click for more info about this token type',
}),
);
expect(
screen.getByText(
`The parent tokens for an NFT collection. Can be used to mint NFTs. No decimal places. The supply of this token is the potential quantity of NFTs which could be minted. If no mint batons exist, the supply is fixed.`,
),
).toBeInTheDocument();
// Close out of the info modal
await userEvent.click(screen.getByText('OK'));
// The wallet balance of this token is correctly rendered
it('SLP1 NFT page will update cashtab token cache for the NFT if it does not include groupTokenId, and for its parent if it is not in cache', async () => {
// Use wallet with nft utxo as only utxo
// Preset a cache without groupTokenId
// Use existing tx and token mocks
// We need to use a unique mockedChronik for this test, with a minted NFT utxo but no parent utxo
// The user actions available for the child NFTs depend on whether or not the NFTs exist in the user's wallet
// We can click an info icon to learn more about this token type
await userEvent.click(
await screen.findByRole('button', {
name: 'Click for more info about this token type',
}),
);
expect(
screen.getByText(
'ALP v1 fungible token. Token may be of fixed or variable supply. If you have a mint baton, you can mint more of this token at any time. May have up to 9 decimal places. ALP tokens use EMPP technology, which supports more token actions compared to SLP and more complex combinations of token and app actions. ALP token txs may have up to 127 outputs, though current OP_RETURN size de facto limits a single tx to 29 outputs.',