Skip to content

Commit a363303

Browse files
committed
Add testID to wheel picker list (#1315)
* Add testID to wheel picker list * Update wheel picker items testID
1 parent 144e323 commit a363303

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/incubator/WheelPicker/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ const WheelPicker = React.memo(({
150150
{...item}
151151
centerH={!label}
152152
onSelect={selectItem}
153-
testID={`${testID}.${index}`}
153+
testID={`${testID}.item_${index}`}
154154
/>
155155
);
156156
},
@@ -192,6 +192,7 @@ const WheelPicker = React.memo(({
192192
<View row marginH-s5 centerH>
193193
<View>
194194
<AnimatedFlatList
195+
testID={`${testID}.list`}
195196
height={height}
196197
data={items}
197198
// @ts-ignore reanimated2

0 commit comments

Comments
 (0)