Skip to content

Commit

Permalink
Added ErrorTypography selector for QA
Browse files Browse the repository at this point in the history
  • Loading branch information
Freshenext committed Oct 3, 2023
1 parent 8c9cff3 commit ff5ac95
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/token/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ interface Props {
amIReceiver?: boolean
}

enum TestID {
ErrorTypography = 'ErrorTypography',
}

export const TokenBalance = ({
firstValue,
secondValue,
Expand Down Expand Up @@ -133,7 +137,10 @@ export const TokenBalance = ({
</Typography>
)}
{error && (
<Typography type="body2" style={styles.error}>
<Typography
type="body2"
style={styles.error}
accessibilityLabel={TestID.ErrorTypography}>
{error}
</Typography>
)}
Expand Down

0 comments on commit ff5ac95

Please sign in to comment.