Skip to content

Commit 9ec76db

Browse files
committed
fix: test id:
1 parent d231920 commit 9ec76db

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/component-library/components-temp/SectionHeader/SectionHeader.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const SectionHeader: React.FC<SectionHeaderProps> = ({
5555
const tw = useTailwind();
5656

5757
return (
58-
<View style={style} testID={testID}>
58+
<View style={style} testID={onPress ? undefined : testID}>
5959
<Box paddingHorizontal={4} twClassName={twClassName}>
6060
<Box
6161
flexDirection={BoxFlexDirection.Row}
@@ -84,6 +84,7 @@ const SectionHeader: React.FC<SectionHeaderProps> = ({
8484
{/* Right side: Icon in circle — touch handled by parent TouchableOpacity */}
8585
{onPress && (
8686
<TouchableOpacity
87+
testID={testID}
8788
onPress={onPress}
8889
disabled={!onPress}
8990
accessibilityRole="button"

0 commit comments

Comments
 (0)