Skip to content

Commit 6ad763b

Browse files
authored
Merge pull request #42 from input-output-hk/feat/add-uncontrolled-pw-error-data-testid
feat: add data-testid for uncontrolled password box error
2 parents 891c8f6 + 470bc66 commit 6ad763b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/design-system/password-box/uncontrolled-password-box-input.component.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,11 @@ export const UncontrolledPasswordInput = ({
9393
</Flex>
9494
</Form.Field>
9595
{errorMessage && (
96-
<Text.Label color="error" className={cx.errorMessage}>
96+
<Text.Label
97+
color="error"
98+
className={cx.errorMessage}
99+
data-testid={testId && `${testId}-error`}
100+
>
97101
{errorMessage}
98102
</Text.Label>
99103
)}

0 commit comments

Comments
 (0)