Changeset View
Changeset View
Standalone View
Standalone View
cashtab/src/components/Send/__tests__/SendXec.test.js
| Show First 20 Lines • Show All 2,770 Lines • ▼ Show 20 Lines | it('We can parse a valid FIRMA-USDC redeem tx from bip21 and broadcast the tx', async () => { | ||||
| expect(amountInputEl).toBeDisabled(); | expect(amountInputEl).toBeDisabled(); | ||||
| // We do not see a token ID query error | // We do not see a token ID query error | ||||
| expect( | expect( | ||||
| screen.queryByText(`Error querying token info for ${token_id}`), | screen.queryByText(`Error querying token info for ${token_id}`), | ||||
| ).not.toBeInTheDocument(); | ).not.toBeInTheDocument(); | ||||
| // We see the valid firma redeem tx info | // We see the valid firma redeem tx info | ||||
| expect(screen.getByAltText('Firma reward')).toBeInTheDocument(); | expect(screen.getByAltText('Firma Alpha reward')).toBeInTheDocument(); | ||||
| expect(screen.getByAltText('USDC logo')).toBeInTheDocument(); | expect(screen.getByAltText('USDC logo')).toBeInTheDocument(); | ||||
| await waitFor(() => { | await waitFor(() => { | ||||
| expect( | expect( | ||||
| screen.getByText( | screen.getByText( | ||||
| 'On tx finalized, 5.0000 USDC will be sent to 6JK...EQ4', | 'On tx finalized, 5.0000 USDC will be sent to 6JK...EQ4', | ||||
| ), | ), | ||||
| ).toBeInTheDocument(); | ).toBeInTheDocument(); | ||||
| ▲ Show 20 Lines • Show All 563 Lines • Show Last 20 Lines | |||||