diff --git a/src/components/input/index.tsx b/src/components/input/index.tsx index 75219cf09..00604e497 100644 --- a/src/components/input/index.tsx +++ b/src/components/input/index.tsx @@ -28,6 +28,10 @@ import { Typography } from '../typography' export { CustomInput } from './CustomInput' +enum TestID { + InputLabel = 'InputLabel', +} + export interface InputProps extends TextInputProps { inputName: string label?: string @@ -110,7 +114,10 @@ export const Input = ({ focused || value || isReadOnly ? styles.contentPadding : null, ]}> {label && (focused || !!value || isReadOnly) ? ( - + {label} ) : null} diff --git a/src/screens/contacts/components/ContactCard.tsx b/src/screens/contacts/components/ContactCard.tsx index 60741ba53..f3c69e023 100644 --- a/src/screens/contacts/components/ContactCard.tsx +++ b/src/screens/contacts/components/ContactCard.tsx @@ -4,6 +4,11 @@ import { AppTouchable, Avatar, Typography } from 'components/index' import { castStyle } from 'shared/utils' import { noop, sharedColors } from 'shared/constants' +enum TestID { + ContactCard = 'ContactCard', + ContactCardTypography = 'ContactCardTypography', +} + interface Props { name: string onPress?: () => void @@ -15,7 +20,8 @@ export const ContactCard = ({ name, style, onPress }: Props) => { + onPress={onPress || noop} + accessibilityLabel={TestID.ContactCard}> <> { type="h4" numberOfLines={1} adjustsFontSizeToFit - minimumFontScale={0.85}> + minimumFontScale={0.85} + accessibilityLabel={TestID.ContactCardTypography}> {name}