diff --git a/CHANGELOG.md b/CHANGELOG.md index bf61de5bca8..d09e8f28bc2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased (develop) +- changed: Add testIDs to the send address tile buttons and the confirm slider to support UI test automation. + ## 4.49.0 (staging) - added: Monero wallet import support diff --git a/eslint.config.mjs b/eslint.config.mjs index 8112af68391..0af85eb0e06 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -341,7 +341,6 @@ export default [ 'src/components/themed/SceneHeader.tsx', - 'src/components/themed/SearchFooter.tsx', 'src/components/themed/SelectableRow.tsx', 'src/components/themed/ShareButtons.tsx', diff --git a/src/__tests__/modals/__snapshots__/AccelerateTxModal.test.tsx.snap b/src/__tests__/modals/__snapshots__/AccelerateTxModal.test.tsx.snap index 2c36f977410..e1503ee0bf6 100644 --- a/src/__tests__/modals/__snapshots__/AccelerateTxModal.test.tsx.snap +++ b/src/__tests__/modals/__snapshots__/AccelerateTxModal.test.tsx.snap @@ -619,6 +619,7 @@ exports[`AccelerateTxModalComponent should render with loading props 1`] = ` }, ] } + testID="confirmSliderThumb" > = (props: Props) => { pluginId={pluginId} tokenId={tokenId} walletName={displayName} + testID={`createRow.${key}`} onPress={async () => { await handleCreateWalletToggle(key) }} @@ -445,6 +446,7 @@ const CreateWalletSelectCryptoComponent: React.FC = (props: Props) => { withTopMargin /> = props => { ) : ( = props => { rightSide, settingsSummary, walletName, + testID, // Icon currency: pluginId, @@ -62,6 +64,7 @@ export const CreateWalletSelectCryptoRowComponent: React.FC = props => { style={styles.container} disabled={onPress == null} onPress={handlePress} + testID={testID} > = props => { void onCancel: () => void @@ -34,6 +35,7 @@ export const SearchFooter: React.FC = props => { searchText, noBackground, sceneWrapperInfo, + testID, onChangeText, onCancel, @@ -90,6 +92,7 @@ export const SearchFooter: React.FC = props => { onLayoutHeight={handleFooterLayoutHeight} >