(anchorText = 'Hover Me')
| 16 | } |
| 17 | |
| 18 | const hoverAndFindTooltip = async (anchorText = 'Hover Me') => { |
| 19 | const anchorElement = screen.getByText(anchorText) |
| 20 | |
| 21 | await userEvent.hover(anchorElement) |
| 22 | await waitForTooltipUpdates() |
| 23 | |
| 24 | return screen.findByRole('tooltip') |
| 25 | } |
| 26 | |
| 27 | describe('tooltip styling and appearance', () => { |
| 28 | test('tooltip with custom className', async () => { |
no test coverage detected