MCPcopy Create free account
hub / github.com/ReactTooltip/react-tooltip / hoverAndFindTooltip

Function hoverAndFindTooltip

src/test/tooltip-styling.spec.js:18–25  ·  view source on GitHub ↗
(anchorText = 'Hover Me')

Source from the content-addressed store, hash-verified

16}
17
18const 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
27describe('tooltip styling and appearance', () => {
28 test('tooltip with custom className', async () => {

Callers 1

Calls 1

waitForTooltipUpdatesFunction · 0.85

Tested by

no test coverage detected