Open grolousi opened 2 years ago
@FaridSafi @bell-steven I'll be glad to do the PR if needed. Just want to be sure I didn't miss something
Thank for you time !
using detox
try this:
<Box testID="address"> <GooglePlacesAutocomplete ref={ref} listViewDisplayed="auto" fetchDetails={true} onPress={(data, details = null) => { if (details) { handleLocationSelection(details) } }} placeholder="Search..." query={{ ... }} /> </Box>
access element:
await element(by.id('address')).typeText('south west')
I would also like this feature as tapping based on the accessible text using Maestro is inconsistent
It would be a nice feature for integration tests
Is your feature request related to a problem? Please describe.
I'm doing E2E testing and I need to inject a testID prop to be able to interact with a component. Using the TextInputProps I'm able to do that with the input but not the with the items in the list.
Describe the solution you'd like
Add an "testID" prop to the TouchableHighlight on the "_renderRowComponent"
Note: Maybe there is a way to do that already and I didn't find it
Thank you for your time !