Skip to content

Commit 05b5230

Browse files
committed
removed main testID from the section testid in the driver
1 parent 2ce3632 commit 05b5230

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/components/sectionsWheelPicker/SectionsWheelPicker.driver.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ export const SectionsWheelPickerDriver = (props: ComponentProps & CustomSections
1414
const driver = useComponentDriver<SectionsWheelPickerProps>(others);
1515

1616
let sectionsDrivers: (ReturnType<typeof WheelPickerDriver>)[];
17+
const {renderTree} = props;
1718
if (customSectionTestIds) {
18-
sectionsDrivers = customSectionTestIds.map(item => {
19+
sectionsDrivers = customSectionTestIds.map(testID => {
1920
return WheelPickerDriver({
20-
renderTree: props.renderTree,
21-
testID: `${props.testID}.${item}`
21+
renderTree,
22+
testID
2223
});
2324
});
2425
} else {

0 commit comments

Comments
 (0)