mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[tilemap/tests] fix test that randomly failed
This commit is contained in:
parent
a7a4b7d2a5
commit
a7d8cdbb15
1 changed files with 5 additions and 3 deletions
|
@ -326,9 +326,11 @@ define(function (require) {
|
|||
chart.tooltipFormatter = function (str) {
|
||||
return '<div class="popup-stub"></div>';
|
||||
};
|
||||
var layerIds = _.keys(map._layers);
|
||||
var id = layerIds[_.random(1, layerIds.length - 1)]; // layer 0 is tileLayer
|
||||
map._layers[id].fire('mouseover');
|
||||
|
||||
var featureLayer = _.sample(_.filter(map._layers, 'feature'));
|
||||
|
||||
expect($('.popup-stub', vis.el).length).to.be(0);
|
||||
featureLayer.fire('mouseover');
|
||||
expect($('.popup-stub', vis.el).length).to.be(1);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue