From 7d6830c7c63be093b9978f03e533bbca06a25411 Mon Sep 17 00:00:00 2001 From: Joachim Schleicher Date: Thu, 19 Oct 2023 21:08:57 +0200 Subject: [PATCH] add test case for 88746d5 --- umap/static/umap/test/Feature.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/umap/static/umap/test/Feature.js b/umap/static/umap/test/Feature.js index 88d3e0b1..228e2bb1 100644 --- a/umap/static/umap/test/Feature.js +++ b/umap/static/umap/test/Feature.js @@ -231,6 +231,13 @@ describe('L.U.FeatureMixin', function () { happen.click(qs('#map')) // Close popup assert.notOk(qs('.umap-icon-active')) }) + + it('should still highlight marker after hide() and show()', function () { + this.datalayer.hide() + this.datalayer.show() + happen.click(qs('div.leaflet-marker-icon')) + assert.ok(qs('.umap-icon-active')) + }) }) describe('#tooltip', function () {