Our company uses golden files for our automated UI testing. It detects UI changes caused by code changes during our PR pipeline Continous Integration. However, it detects several false changes which were caused by the Map not loading properly due to internet latency.
For the case below, notice the white areas on the left. The testing software thought these were UI changes which are actually not and the test for this case failed even though it was supposed to pass.
Does anyone have any experience dealing with Google maps on any framework like Javascript, Android, or iOS when doing UI Testing?
Ideally, it would be best if a tiny portion of the Google map is downloaded offline during the UI testing but does the Google Maps SDK has anything for that?
If not, can we replace the image layer of a specific region on the map with a static offline image or can we mock the API calls done by the map to load those tiles?