Skip to content

Commit 5aadf72

Browse files
authored
Add testID to wheel picker list (#1315)
* Add testID to wheel picker list * Update wheel picker items testID
1 parent ef45166 commit 5aadf72

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
@@ -157,7 +157,7 @@ const WheelPicker = React.memo(({
157157
{...item}
158158
centerH={!label}
159159
onSelect={selectItem}
160-
testID={`${testID}.${index}`}
160+
testID={`${testID}.item_${index}`}
161161
/>
162162
);
163163
},
@@ -200,6 +200,7 @@ const WheelPicker = React.memo(({
200200
<View row marginH-s5 centerH>
201201
<View>
202202
<AnimatedFlatList
203+
testID={`${testID}.list`}
203204
height={height}
204205
data={items}
205206
// @ts-ignore reanimated2

0 commit comments

Comments
 (0)