How to test leaflet based maps using testcafe?
问题 We are building a series of tests using TestCafe. How do we test if a point or path in a leaflet control is rendered correctly? To be more specific we are trying to test the lat-lon data of a circle marker in the map. But, we do not have any leaflet map/marker object available in the scope of testcafe scripts. References: Unit testing leaflet maps 回答1: I created a simple example of an assertion for a path element in a leaflet control on the getting started demo page https://leafletjs.com