cal-heatmap icon indicating copy to clipboard operation
cal-heatmap copied to clipboard

Is there a way to trigger the tooltip display

Open lenybernard opened this issue 7 years ago • 1 comments

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 ?

lenybernard avatar Jun 26 '17 22:06 lenybernard

Maybe you can call a mouseenter event on the cell ?

wa0x6e avatar Jun 27 '17 22:06 wa0x6e

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);

wa0x6e avatar Nov 18 '22 17:11 wa0x6e