diff --git a/app/components/UI/AccountOverview/index.js b/app/components/UI/AccountOverview/index.js index 40f5ce6f5c7..6d122401bde 100644 --- a/app/components/UI/AccountOverview/index.js +++ b/app/components/UI/AccountOverview/index.js @@ -47,7 +47,7 @@ import { selectSelectedAddress, } from '../../../selectors/preferencesController'; import { createAccountSelectorNavDetails } from '../../Views/AccountSelector'; -import { regex } from '../../../../app/util/regex'; +import { regex } from '../../../util/regex'; import Text, { TextVariant, } from '../../../component-library/components/Texts/Text'; @@ -363,7 +363,6 @@ class AccountOverview extends PureComponent { keyboardShouldPersistTaps={'never'} style={styles.scrollView} contentContainerStyle={styles.wrapper} - testID={'account-overview'} > {selectedAddress ? ( diff --git a/app/components/UI/AddCustomCollectible/index.tsx b/app/components/UI/AddCustomCollectible/index.tsx index 6ea873e13db..1d0c5646810 100644 --- a/app/components/UI/AddCustomCollectible/index.tsx +++ b/app/components/UI/AddCustomCollectible/index.tsx @@ -219,8 +219,6 @@ const AddCustomCollectible = ({ {...generateTestId(Platform, CUSTOM_TOKEN_CONTAINER_ID)} > { onBlur={onInputBlur} onSubmitEditing={onSubmit} value={toSelectedAddress} - {...generateTestId(Platform, SEND_ADDRESS_INPUT_FIELD)} + testID={SendViewSelectorsIDs.ADDRESS_INPUT} keyboardAppearance={themeAppearance} /> @@ -468,7 +460,7 @@ export const AddressTo = (props) => { onBlur={onInputBlur} onSubmitEditing={onSubmit} value={toAddressName} - testID={'txn-to-address-input'} + testID={SendViewSelectorsIDs.ADDRESS_INPUT} keyboardAppearance={themeAppearance} /> ) : ( diff --git a/app/components/UI/ApproveTransactionReview/index.js b/app/components/UI/ApproveTransactionReview/index.js index 60556ca0c1e..3b495825aad 100644 --- a/app/components/UI/ApproveTransactionReview/index.js +++ b/app/components/UI/ApproveTransactionReview/index.js @@ -9,7 +9,7 @@ import { import Eth from 'ethjs-query'; import ActionView from '../../UI/ActionView'; import PropTypes from 'prop-types'; -import { getApproveNavbar } from '../../UI/Navbar'; +import { getApproveNavbar } from '../Navbar'; import { connect } from 'react-redux'; import { getHost } from '../../../util/browser'; import { @@ -98,7 +98,7 @@ import { getRampNetworks } from '../../../reducers/fiatOrders'; import SkeletonText from '../Ramp/common/components/SkeletonText'; import InfoModal from '../../../components/UI/Swaps/components/InfoModal'; import TransactionBlockaidBanner from '../TransactionBlockaidBanner/TransactionBlockaidBanner'; -import { regex } from '../../../../app/util/regex'; +import { regex } from '../../../util/regex'; const { ORIGIN_DEEPLINK, ORIGIN_QR_CODE } = AppConstants.DEEPLINKS; const POLLING_INTERVAL_ESTIMATED_L1_FEE = 30000; @@ -784,7 +784,7 @@ class ApproveTransactionReview extends PureComponent { return ( <> - + {from && ( )} - + {strings( `spend_limit_edition.${ originIsDeeplink @@ -1185,7 +1181,7 @@ class ApproveTransactionReview extends PureComponent { } = this.props; const styles = this.getStyles(); return ( - + handleSelectAsset(searchResults[i])} // eslint-disable-line key={i} - {...generateTestId(Platform, TOKEN_RESULTS_LIST_ID)} + testID={ImportTokenViewSelectorsIDs.CONTAINER} > diff --git a/app/components/Views/AddAsset/__snapshots__/AddAsset.test.tsx.snap b/app/components/Views/AddAsset/__snapshots__/AddAsset.test.tsx.snap index bb5c05f9e32..09e0f6e7c5c 100644 --- a/app/components/Views/AddAsset/__snapshots__/AddAsset.test.tsx.snap +++ b/app/components/Views/AddAsset/__snapshots__/AddAsset.test.tsx.snap @@ -315,7 +315,7 @@ exports[`AddAsset component renders correctly 1`] = ` null, ] } - testID="add-custom-asset-cancel-button" + testID="" >