diff --git a/app/components/UI/CollectibleContracts/constants.ts b/app/components/UI/CollectibleContracts/constants.ts new file mode 100644 index 00000000000..8d33e4b7a69 --- /dev/null +++ b/app/components/UI/CollectibleContracts/constants.ts @@ -0,0 +1,3 @@ +const RefreshTestId = 'refreshControl'; + +export default RefreshTestId; diff --git a/app/components/UI/CollectibleContracts/index.js b/app/components/UI/CollectibleContracts/index.js index cebf6dd82d9..e79b07deb1b 100644 --- a/app/components/UI/CollectibleContracts/index.js +++ b/app/components/UI/CollectibleContracts/index.js @@ -44,6 +44,7 @@ import { NFT_TAB_CONTAINER_ID, } from '../../../../wdio/screen-objects/testIDs/Screens/WalletView.testIds'; import { useMetrics } from '../../../components/hooks/useMetrics'; +import RefreshTestId from './constants'; const createStyles = (colors) => StyleSheet.create({ @@ -330,7 +331,7 @@ const CollectibleContracts = ({ data={collectibleContracts} renderItem={({ item, index }) => renderCollectibleContract(item, index)} keyExtractor={(_, index) => index.toString()} - testID="refreshControl" + testID={RefreshTestId} refreshControl={