add test case for path higlight

therefore setting opacity of the example path to 0.6
This commit is contained in:
Joachim Schleicher 2023-10-19 21:31:52 +02:00
parent 7d6830c7c6
commit b149a69efd
3 changed files with 9 additions and 1 deletions

View file

@ -238,6 +238,12 @@ describe('L.U.FeatureMixin', function () {
happen.click(qs('div.leaflet-marker-icon')) happen.click(qs('div.leaflet-marker-icon'))
assert.ok(qs('.umap-icon-active')) assert.ok(qs('.umap-icon-active'))
}) })
it('should highlight path', function () {
happen.click(qs('path[stroke-opacity="0.6"]'))
var path = qs('path[stroke-opacity="1"]')
assert.ok(path)
})
}) })
describe('#tooltip', function () { describe('#tooltip', function () {

View file

@ -64,6 +64,7 @@ describe('L.U.Map.Export', function () {
properties: { properties: {
_umap_options: { _umap_options: {
fill: false, fill: false,
opacity: 0.6,
}, },
name: 'test', name: 'test',
}, },
@ -187,6 +188,7 @@ describe('L.U.Map.Export', function () {
properties: { properties: {
_umap_options: { _umap_options: {
fill: false, fill: false,
opacity: 0.6,
}, },
name: 'test', name: 'test',
}, },

View file

@ -254,7 +254,7 @@ var RESPONSES = {
}, },
type: 'Feature', type: 'Feature',
id: 20, id: 20,
properties: { _umap_options: { fill: false }, name: 'test' }, properties: { _umap_options: { fill: false, opacity: 0.6 }, name: 'test' },
}, },
{ {
geometry: { geometry: {