diff --git a/packages/wallets/src/components/WalletMarketCurrencyIcon/WalletMarketCurrencyIcon.tsx b/packages/wallets/src/components/WalletMarketCurrencyIcon/WalletMarketCurrencyIcon.tsx index ca68ccc978c3..59e43996a77a 100644 --- a/packages/wallets/src/components/WalletMarketCurrencyIcon/WalletMarketCurrencyIcon.tsx +++ b/packages/wallets/src/components/WalletMarketCurrencyIcon/WalletMarketCurrencyIcon.tsx @@ -32,7 +32,7 @@ const WalletMarketCurrencyIcon: FC = ({ currency } else MarketTypeIcon = 'IcWalletOptionsLight'; return ( -
+
{ + it('renders MT5 Financial Icon', () => { + render( + + ); + const marketIcon = screen.getByTestId('dt_wallet_icon'); + const currencyIcon = screen.getByTestId('dt_wallet_currency_icon'); + expect(screen.getByTestId('dt_wallet_market_icon')).toBeInTheDocument(); + expect(marketIcon).toBeInTheDocument(); + expect(currencyIcon).toBeInTheDocument(); + }); + + it('renders DXTrade icon', () => { + render( + + ); + const marketIcon = screen.getByTestId('dt_wallet_icon'); + const currencyIcon = screen.getByTestId('dt_wallet_currency_icon'); + expect(screen.getByTestId('dt_wallet_market_icon')).toBeInTheDocument(); + expect(marketIcon).toBeInTheDocument(); + expect(currencyIcon).toBeInTheDocument(); + }); + + it('renders Options icon', () => { + render(); + const marketIcon = screen.getByTestId('dt_wallet_icon'); + const currencyIcon = screen.getByTestId('dt_wallet_currency_icon'); + expect(screen.getByTestId('dt_wallet_market_icon')).toBeInTheDocument(); + expect(marketIcon).toBeInTheDocument(); + expect(currencyIcon).toBeInTheDocument(); + }); +});