From 34108906d18f66d6b01d1c455e5ae09d34fe7e8b Mon Sep 17 00:00:00 2001 From: Nada Date: Tue, 29 Aug 2023 09:28:53 +0400 Subject: [PATCH] fix: revert unwanted changes from master --- packages/components/stories/icon/icons.js | 36 +++++++++---------- .../__tests__/search-input.spec.tsx | 4 +-- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/packages/components/stories/icon/icons.js b/packages/components/stories/icon/icons.js index 215e26ef8232..9baa418d97f9 100644 --- a/packages/components/stories/icon/icons.js +++ b/packages/components/stories/icon/icons.js @@ -54,7 +54,7 @@ export const icons = 'IcAppstoreWalletUsdLight', 'IcAppstoreWalletUsdcLight', 'IcAppstoreWalletUsdtLight', - 'IcAppstoreWarning', + 'IcAppstoreWarning' ], 'brand': [ 'IcBrandDerivEzWordmark', @@ -64,7 +64,7 @@ export const icons = 'IcBrandDmt5FinancialStp', 'IcBrandDmt5Financial', 'IcBrandDmt5Synthetics', - 'IcBrandDxtradeWordmark', + 'IcBrandDxtradeWordmark' ], 'cashier': [ 'IcCashierAdd', @@ -238,7 +238,7 @@ export const icons = 'IcCashierWyreLight', 'IcCashierZenithbankDark', 'IcCashierZenithbankLight', - 'IcCashier', + 'IcCashier' ], 'common': [ 'IcAccountCross', @@ -611,7 +611,7 @@ export const icons = 'IcWip', 'IcZingpay', 'IcZoomIn', - 'IcZoomOut', + 'IcZoomOut' ], 'contract': [ 'IcContractBarrier', @@ -629,7 +629,7 @@ export const icons = 'IcContractStartTimeCircle', 'IcContractStartTime', 'IcContractStrike', - 'IcContractTarget', + 'IcContractTarget' ], 'currency': [ 'IcCurrencyAud', @@ -653,10 +653,10 @@ export const icons = 'IcCurrencyUsdc', 'IcCurrencyUsdk', 'IcCurrencyUst', - 'IcCurrencyVirtual', + 'IcCurrencyVirtual' ], 'derivez': [ - 'IcDerivez', + 'IcDerivez' ], 'dxtrade': [ 'IcDxtradeDerivX', @@ -673,7 +673,7 @@ export const icons = 'IcDxtradeFinancialPlatform', 'IcDxtradeFinancial', 'IcDxtradeOnePassword', - 'IcDxtradeSyntheticPlatform', + 'IcDxtradeSyntheticPlatform' ], 'flag': [ 'IcFlagDe', @@ -690,7 +690,7 @@ export const icons = 'IcFlagUk', 'IcFlagVi', 'IcFlagZhCn', - 'IcFlagZhTw', + 'IcFlagZhTw' ], 'mt5': [ 'IcMt5Acuity', @@ -719,7 +719,7 @@ export const icons = 'IcMt5SyntheticDashboard', 'IcMt5SyntheticIndices', 'IcMt5SyntheticPlatform', - 'IcMt5TradeTypes', + 'IcMt5TradeTypes' ], 'option': [ 'IcOptionAccumulators', @@ -737,7 +737,7 @@ export const icons = 'IcOptionOverUnder', 'IcOptionRaiseFall', 'IcOptionTouchNotouch', - 'IcOptionUpDownAsian', + 'IcOptionUpDownAsian' ], 'rebranding': [ 'IcRebrandingBinaryBot', @@ -758,7 +758,7 @@ export const icons = 'IcRebrandingDxtrade', 'IcRebrandingMt5Logo', 'IcRebrandingSmarttraderDashboard', - 'IcRebrandingSmarttrader', + 'IcRebrandingSmarttrader' ], 'stock': [ 'IcStockAdidasSalomon', @@ -808,7 +808,7 @@ export const icons = 'IcStockVisa', 'IcStockWallMart', 'IcStockWaltDisney', - 'IcStockZoom', + 'IcStockZoom' ], 'tradetype': [ 'IcTradetypeAccu', @@ -847,7 +847,7 @@ export const icons = 'IcTradetypeTurbosshort', 'IcTradetypeUpordown', 'IcTradetypeVanillaLongCall', - 'IcTradetypeVanillaLongPut', + 'IcTradetypeVanillaLongPut' ], 'underlying': [ 'IcUnderlying1HZ100V', @@ -1006,7 +1006,7 @@ export const icons = 'IcUnderlyingWLDEUR', 'IcUnderlyingWLDGBP', 'IcUnderlyingWLDUSD', - 'IcUnderlyingWLDXAU', + 'IcUnderlyingWLDXAU' ], 'wallet': [ 'IcWalletClearFunds', @@ -1042,6 +1042,6 @@ export const icons = 'IcWalletWebmoneyLight', 'IcWalletWebmoney', 'IcWalletZingpayDark', - 'IcWalletZingpayLight', - ], -} + 'IcWalletZingpayLight' + ] +} \ No newline at end of file diff --git a/packages/trader/src/Modules/Trading/Components/Form/ContractType/__tests__/search-input.spec.tsx b/packages/trader/src/Modules/Trading/Components/Form/ContractType/__tests__/search-input.spec.tsx index 90b71fa76b09..bfbba2a7d884 100644 --- a/packages/trader/src/Modules/Trading/Components/Form/ContractType/__tests__/search-input.spec.tsx +++ b/packages/trader/src/Modules/Trading/Components/Form/ContractType/__tests__/search-input.spec.tsx @@ -24,12 +24,12 @@ describe('', () => { }); it('should not display trailing clear icon when input is empty', () => { render(); - expect(screen.getByTestId('mockedIcon')).toBeInTheDocument(); + expect(screen.getAllByTestId('mockedIcon').length).toBe(1); }); it('should display trailing clear icon when input is not empty', () => { mocked_props.value = 'test'; render(); - expect(screen.getAllByTestId('mockedIcon')).toHaveLength(2); + expect(screen.getAllByTestId('mockedIcon').length).toBe(2); }); it('should render correct text when value is changed', () => { mocked_props.value = 'test';