Changeset View
Changeset View
Standalone View
Standalone View
cashtab/src/components/Home/Tx/__tests__/index.test.js
| Show First 20 Lines • Show All 3,869 Lines • ▼ Show 20 Lines | it('Outgoing FIRMA yield payment', async () => { | ||||
| // We see the expected sent amount | // We see the expected sent amount | ||||
| expect(screen.getByText('-65.52 XEC')).toBeInTheDocument(); | expect(screen.getByText('-65.52 XEC')).toBeInTheDocument(); | ||||
| // We see the a fiat amount | // We see the a fiat amount | ||||
| expect(screen.getByText('-$0.00')).toBeInTheDocument(); | expect(screen.getByText('-$0.00')).toBeInTheDocument(); | ||||
| // We see Firma icon | // We see Firma icon | ||||
| expect(screen.getByAltText(`Firma reward`)).toBeInTheDocument(); | expect(screen.getByAltText(`Firma Alpha reward`)).toBeInTheDocument(); | ||||
| // We see Firma yield app action | // We see Firma yield app action | ||||
| expect(screen.getByText(`Firma yield payment`)).toBeInTheDocument(); | expect(screen.getByText(`Firma yield payment`)).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Incoming FIRMA yield payment', async () => { | it('Incoming FIRMA yield payment', async () => { | ||||
| const thisMock = firmaYieldTx; | const thisMock = firmaYieldTx; | ||||
| render( | render( | ||||
| <MemoryRouter> | <MemoryRouter> | ||||
| Show All 26 Lines | it('Incoming FIRMA yield payment', async () => { | ||||
| // We see the expected sent amount | // We see the expected sent amount | ||||
| expect(screen.getByText('5.46 XEC')).toBeInTheDocument(); | expect(screen.getByText('5.46 XEC')).toBeInTheDocument(); | ||||
| // We see the a fiat amount | // We see the a fiat amount | ||||
| expect(screen.getByText('$0.00')).toBeInTheDocument(); | expect(screen.getByText('$0.00')).toBeInTheDocument(); | ||||
| // We see Firma icon | // We see Firma icon | ||||
| expect(screen.getByAltText(`Firma reward`)).toBeInTheDocument(); | expect(screen.getByAltText(`Firma Alpha reward`)).toBeInTheDocument(); | ||||
| // We see Firma yield app action | // We see Firma yield app action | ||||
| expect(screen.getByText(`Firma yield payment`)).toBeInTheDocument(); | expect(screen.getByText(`Firma yield payment`)).toBeInTheDocument(); | ||||
| }); | }); | ||||
| it('Outgoing FIRMA-USDC conversion tx', async () => { | it('Outgoing FIRMA-USDC conversion tx', async () => { | ||||
| const thisMock = firmaRedeemTx; | const thisMock = firmaRedeemTx; | ||||
| render( | render( | ||||
| <MemoryRouter> | <MemoryRouter> | ||||
| Show All 26 Lines | it('Outgoing FIRMA-USDC conversion tx', async () => { | ||||
| // We see the expected sent amount | // We see the expected sent amount | ||||
| expect(screen.getByText('-5.46 XEC')).toBeInTheDocument(); | expect(screen.getByText('-5.46 XEC')).toBeInTheDocument(); | ||||
| // We see the a fiat amount | // We see the a fiat amount | ||||
| expect(screen.getByText('-$0.00')).toBeInTheDocument(); | expect(screen.getByText('-$0.00')).toBeInTheDocument(); | ||||
| // We see Firma icon | // We see Firma icon | ||||
| expect(screen.getByAltText(`Firma reward`)).toBeInTheDocument(); | expect(screen.getByAltText(`Firma Alpha reward`)).toBeInTheDocument(); | ||||
| // We see the USDC icon | // We see the USDC icon | ||||
| expect(screen.getByAltText(`USDC logo`)).toBeInTheDocument(); | expect(screen.getByAltText(`USDC logo`)).toBeInTheDocument(); | ||||
| // We see the SOL logo | // We see the SOL logo | ||||
| expect(screen.getByAltText(`SOL logo`)).toBeInTheDocument(); | expect(screen.getByAltText(`SOL logo`)).toBeInTheDocument(); | ||||
| // We see Firma redeem app action | // We see Firma redeem app action | ||||
| ▲ Show 20 Lines • Show All 242 Lines • Show Last 20 Lines | |||||