Skip to content

Commit

Permalink
fix: properly propagate testID to children (#262)
Browse files Browse the repository at this point in the history
## Short description
Fixes the test id not propagating to its children components on
TextInputVariants

## List of changes proposed in this pull request
- TextInputBase

## How to test
N/A
  • Loading branch information
CrisTofani authored May 13, 2024
1 parent 4366e60 commit 3bb2bf7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/textInput/TextInputBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ export const TextInputBase = ({
onBlur,
onFocus,
isPassword,
autoFocus
autoFocus,
testID
}: InputTextProps) => {
const theme = useIOTheme();

Expand Down Expand Up @@ -279,6 +280,7 @@ export const TextInputBase = ({
</>
)}
<TextInput
testID={testID}
{...(derivedInputProps
? derivedInputProps.textInputProps
: textInputProps)}
Expand Down

0 comments on commit 3bb2bf7

Please sign in to comment.