Skip to content

Commit fb6534b

Browse files
author
Eric Olkowski
committed
Removed test
1 parent cd34c1d commit fb6534b

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

packages/react-core/src/components/Tooltip/__tests__/Tooltip.test.tsx

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -90,30 +90,6 @@ test('Renders without aria-labelledby or aria-describedby on trigger when aria="
9090
expect(screen.getByRole('button')).not.toHaveAccessibleDescription('Test content');
9191
});
9292

93-
test('Does not call onTooltipHidden when not passed', async () => {
94-
const onTooltipHiddenMock = jest.fn();
95-
const user = userEvent.setup();
96-
97-
const TooltipCallback = () => {
98-
const [isVisible, setIsVisible] = React.useState(false);
99-
100-
return (
101-
<Tooltip trigger="manual" isVisible={isVisible} content="Test content">
102-
<button onClick={() => setIsVisible(!isVisible)}>Toggle</button>
103-
</Tooltip>
104-
);
105-
};
106-
render(<TooltipCallback />);
107-
108-
await user.click(screen.getByRole('button'));
109-
await screen.findByRole('tooltip');
110-
expect(onTooltipHiddenMock).not.toHaveBeenCalled();
111-
112-
await user.click(screen.getByRole('button'));
113-
await screen.findByText('isVisible: false');
114-
expect(onTooltipHiddenMock).not.toHaveBeenCalled();
115-
});
116-
11793
test('Calls onTooltipHidden when passed', async () => {
11894
const onTooltipHiddenMock = jest.fn();
11995
const user = userEvent.setup();

0 commit comments

Comments
 (0)