diff --git a/app/components/UI/Money/Views/MoneyPotentialEarningsView/MoneyPotentialEarningsView.test.tsx b/app/components/UI/Money/Views/MoneyPotentialEarningsView/MoneyPotentialEarningsView.test.tsx index 33acbde147e..2f1a7b6183f 100644 --- a/app/components/UI/Money/Views/MoneyPotentialEarningsView/MoneyPotentialEarningsView.test.tsx +++ b/app/components/UI/Money/Views/MoneyPotentialEarningsView/MoneyPotentialEarningsView.test.tsx @@ -307,12 +307,12 @@ describe('MoneyPotentialEarningsView', () => { it('renders ALL eligible tokens, not limited to 5', () => { const { getByText } = renderWithProvider(); - expect(getByText('USDC')).toBeOnTheScreen(); - expect(getByText('USDT')).toBeOnTheScreen(); - expect(getByText('DAI')).toBeOnTheScreen(); - expect(getByText('WETH')).toBeOnTheScreen(); - expect(getByText('LINK')).toBeOnTheScreen(); - expect(getByText('UNI')).toBeOnTheScreen(); + expect(getByText('USD Coin')).toBeOnTheScreen(); + expect(getByText('Tether')).toBeOnTheScreen(); + expect(getByText('Dai')).toBeOnTheScreen(); + expect(getByText('Wrapped Ether')).toBeOnTheScreen(); + expect(getByText('ChainLink')).toBeOnTheScreen(); + expect(getByText('Uniswap')).toBeOnTheScreen(); }); it('renders the view without errors', () => { diff --git a/app/components/UI/Money/components/MoneyPotentialEarnings/MoneyPotentialEarnings.test.tsx b/app/components/UI/Money/components/MoneyPotentialEarnings/MoneyPotentialEarnings.test.tsx index 3aa69235918..71cebb8ef67 100644 --- a/app/components/UI/Money/components/MoneyPotentialEarnings/MoneyPotentialEarnings.test.tsx +++ b/app/components/UI/Money/components/MoneyPotentialEarnings/MoneyPotentialEarnings.test.tsx @@ -520,7 +520,7 @@ describe('MoneyPotentialEarnings', () => { expect( getAllByText(strings('money.potential_earnings.no_fee')), ).toHaveLength(1); - expect(queryByText('USDT')).toBeOnTheScreen(); + expect(queryByText('Tether')).toBeOnTheScreen(); }); }); }); diff --git a/app/components/UI/Money/components/MoneyPotentialEarnings/PotentialEarningsTokenRow.test.tsx b/app/components/UI/Money/components/MoneyPotentialEarnings/PotentialEarningsTokenRow.test.tsx index e98342606fa..fd4b7bcf4d6 100644 --- a/app/components/UI/Money/components/MoneyPotentialEarnings/PotentialEarningsTokenRow.test.tsx +++ b/app/components/UI/Money/components/MoneyPotentialEarnings/PotentialEarningsTokenRow.test.tsx @@ -60,7 +60,7 @@ describe('PotentialEarningsTokenRow', () => { mockMoneyFormatFiat.mockClear(); }); - it('renders the token symbol', () => { + it('renders the token name', () => { const { getByText } = render( { />, ); + expect(getByText('USD Coin')).toBeOnTheScreen(); + }); + + it('falls back to the token symbol when name is empty', () => { + const noNameToken = makeToken({ name: '', symbol: 'USDC' }); + const { getByText } = render( + , + ); + expect(getByText('USDC')).toBeOnTheScreen(); }); @@ -193,7 +208,7 @@ describe('PotentialEarningsTokenRow', () => { />, ); - fireEvent.press(getByText('USDC')); + fireEvent.press(getByText('USD Coin')); expect(mockOnPress).toHaveBeenCalledTimes(1); }); diff --git a/app/components/UI/Money/components/MoneyPotentialEarnings/PotentialEarningsTokenRow.tsx b/app/components/UI/Money/components/MoneyPotentialEarnings/PotentialEarningsTokenRow.tsx index 85893826227..3dcbe3e4410 100644 --- a/app/components/UI/Money/components/MoneyPotentialEarnings/PotentialEarningsTokenRow.tsx +++ b/app/components/UI/Money/components/MoneyPotentialEarnings/PotentialEarningsTokenRow.tsx @@ -121,7 +121,7 @@ const PotentialEarningsTokenRow = ({ twClassName="gap-1" > - {token.symbol} + {token.name || token.symbol} {hasSubsidizedFee && (