More tests fixed

This commit is contained in:
alexjanousekGSA
2025-06-16 20:17:43 -04:00
parent 468216fdf9
commit f12a977608
5 changed files with 125 additions and 37 deletions

View File

@@ -143,8 +143,10 @@ test('Tooltip displays on hover', () => {
});
sentBar.dispatchEvent(mouseMoveEvent);
expect(tooltip.style.left).toBe('');
expect(tooltip.style.top).toBe('');
// In Jest 30, the mousemove event actually sets the tooltip position
// Check that tooltip has been positioned (not empty)
expect(tooltip.style.left).not.toBe('');
expect(tooltip.style.top).not.toBe('');
// Mouse out to hide tooltip
const mouseOutEvent = new Event('mouseout');