cal-heatmap
cal-heatmap copied to clipboard
Is there a way to trigger the tooltip display
Hello,
I use this library in an app and all is working well but now, I need to test and I want to do it with Behat by simply checking the tooltip's contents when my mouse comes over the cells.
To do this, as Selenium doesn't really have a mouse, I had the idea to simulate/trigger the mouseover but I don't figure how to do that, there is nothing in the documentation to help me with this need...
Do you see a way to do that ? If not, do you think it could be good to implement ?
Maybe you can call a mouseenter
event on the cell ?
Each cells have a mouseover and mouseout event, since v4
Use following code to trigger it, after getting the cell from the DOM
var e = new Event('mouseover');
cell.dispatchEvent(e);