(tooltip)
| 34 | } |
| 35 | |
| 36 | const expectTooltipToShow = async (tooltip) => { |
| 37 | await waitFor(() => { |
| 38 | expect(getTooltip()).toHaveClass('react-tooltip__show') |
| 39 | }) |
| 40 | // the same element all along, not one that was removed and rendered again |
| 41 | expect(getTooltip()).toBe(tooltip) |
| 42 | } |
| 43 | |
| 44 | const TestTooltip = ({ tooltipRef, ...tooltipProps }) => ( |
| 45 | <> |
no test coverage detected