Skip to content

Commit

Permalink
increasing coverage covering handlign event
Browse files Browse the repository at this point in the history
  • Loading branch information
dpitcock committed Sep 3, 2024
1 parent a603054 commit ce09c55
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app-layout/__tests__/trigger-button.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,11 @@ describe('Visual refresh trigger-button (not in appLayoutWidget toolbar)', () =>
expect(wrapper!.getElement().classList.contains(visualRefreshStyles['trigger-wrapper-tooltip-visible'])).toBe(
true
);
//trigger event again to assert the tooltip remains
fireEvent.pointerDown(wrapper!.getElement());
expect(wrapper!.getElement().classList.contains(visualRefreshStyles['trigger-wrapper-tooltip-visible'])).toBe(
true
);
} else {
expect(() => getByText(mockTooltipText)).toThrow();
expect(wrapper!.getElement().classList.contains(visualRefreshStyles['trigger-wrapper-tooltip-visible'])).toBe(
Expand Down

0 comments on commit ce09c55

Please sign in to comment.