🧩 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
🧩 Background
The component/utility at
components/dashboard/Heatmap.tsxneeds 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.tsxtargeting 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
✅ Definition of done
vitest runpasses.