Reputation: 1545
Is there a way in cypress to test the tooltip info when hover over in different places?
Ex: I hover over a graph, which shows different values when hover over different places
hovering over 0,0 displays (x=0,y=0) in tooltip and so on.. Any help will be highly appreciated.
Upvotes: 1
Views: 8188
Reputation: 2486
Try something like this: cy.trigger('mousedown', x, y)
. Then you can do cy.get('.tooltip-selector').should('contains', 'value')
Upvotes: 4