0

I would like to automate the testing using testcafe or codeceptjs for a test case in which an item is displayed on correct address in map after clicking on it. expected behavior for test case: User is taken to correct address on map after clicking the specific item

Alex Skorkin
  • 4,264
  • 3
  • 25
  • 47
  • Could you please share an example of your test script? Did I understand you correctly that a map is scrolled programmatically on an event and you wish to check the coordinates it is scrolled to? – Alexey Lindberg Feb 17 '20 at 13:35
  • I can share you the use case.Go to google maps. Please put an address which you want to search. User is redirected to exact address on map with red icon after entering the required search so i would like to assert whether searched address or city/country/continent is same as displayed on map. Thanks – secretAssassin Feb 19 '20 at 08:44

1 Answers1

2

Here is an example of how to test a Leaflet-based map using TestCafe: How to test leaflet based maps using testcafe?.

Dmitry Ostashev
  • 2,305
  • 1
  • 5
  • 21
  • Thanks for your response. I have gone through leaflet based map article before. My only concern is putting the coordinates everytime in the test script. Is there any other way to avoid putting coordinates ? – secretAssassin Feb 17 '20 at 08:50
  • Please describe your scenario in greater detail. What kind of values do you wish to assert in your test? From where are you going to get etalon values? – aleks-pro Feb 20 '20 at 11:14