Skip to content

Commit

Permalink
add testIDs in baseHeader component
Browse files Browse the repository at this point in the history
  • Loading branch information
Assisneto committed Aug 16, 2024
1 parent 0d89c85 commit 0a1d4e2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/baseHeader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,15 @@ export const BaseHeader = ({
}: BaseHeaderProps) => {
return (
<>
<Container>
<Container testID="headerContainer">
<AlignWrapper>
{leftIconName && (
<Icons name={leftIconName} size={34} onPress={onLeftIconPress} />
<Icons
name={leftIconName}
size={34}
onPress={onLeftIconPress}
testID="back-icon"
/>
)}
{title && <Title>{title}</Title>}
</AlignWrapper>
Expand Down

0 comments on commit 0a1d4e2

Please sign in to comment.