Skip to content

test(Heatmap-mouse-interactivity): verify Interactive Tooltips, Cursor Hovers & Touch Event Propagation (Variation 5) #2557

Description

@souravjhahind

🧩 Background

The component/utility at components/dashboard/Heatmap.tsx needs isolated unit and integration testing. This issue focuses specifically on Interactive Tooltips, Cursor Hovers & Touch Event Propagation. Interactive elements require robust validation of callback coordinates and display transitions.

🎯 Objective

Create the new test file components/dashboard/Heatmap.mouse-interactivity.test.tsx targeting Interactive Tooltips, Cursor Hovers & Touch Event Propagation and achieve complete coverage on the specified conditions.

📁 Files to touch

  • components/dashboard/Heatmap.mouse-interactivity.test.tsx (new)

🛠️ Implementation steps

  • Trigger simulated mouseenter/hover gestures on active segments or interactive nodes.
  • Verify that responsive tooltip layouts display at computed coordinates.
  • Test custom click/touch gestures and ensure click events propagate correctly.
  • Assert appropriate cursor style classes (like pointer) are applied on hover.
  • Check that mouseleave events successfully hide temporary overlay visuals.

✅ Definition of done

  • 5 test cases.
  • vitest run passes.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions