react-native-action-sheet icon indicating copy to clipboard operation
react-native-action-sheet copied to clipboard

Support for automated tests

Open HungDuc13 opened this issue 3 years ago • 3 comments

Is it possible to add accessibility IDs/testIDs to action sheet buttons?

HungDuc13 avatar Nov 21 '22 20:11 HungDuc13

@HungDuc13 I assume you're referring to the custom action sheet? I believe the iOS side would just forward everything to the ActionSheetIOS api.

bradbyte avatar Nov 21 '22 20:11 bradbyte

@bradbyte I'm trying to do an automation test on action sheet buttons of the showActionSheetWithOptions, but browsing through the list of universal props, i don't see a way to add accessibility IDs/test IDs specifically to the action sheet buttons.

HungDuc13 avatar Nov 21 '22 20:11 HungDuc13

I don't think the custom action sheet supports that, though I'm sure it could be added. I'm not sure how you would test it on iOS though as I don't see anything in the ActionSheetIOS documentation for these props.

bradbyte avatar Nov 21 '22 20:11 bradbyte