react-native-maps - Detox: Support tap() on Map Markers
Our React Native application relies quite heavily on Google Maps components provided by react-native-maps
.
When first starting to cover our map with tests, it all went pretty smoothly, we could make sure the map was visible, great.
However, anything to do with markers on the map started to be a bit of an issue, it’s all explained here:
Read more...Calling
.tap()
on<AIRGoogleMapMarker>
element doesn’t tap at the correct x/y coordinate on the screen.It’s always ending up tapping at the top-left corner of the MapView, even though my marker is aligned at the centre of the MapView.