MCPcopy Create free account
hub / github.com/adobe/react-spectrum / TestTooltip

Function TestTooltip

packages/react-aria-components/test/Tooltip.test.js:23–39  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

21import userEvent from '@testing-library/user-event';
22
23function TestTooltip(props) {
24 return (
25 <TooltipTrigger delay={0}>
26 <Button>
27 <span aria-hidden="true">✏️</span>
28 </Button>
29 <Tooltip data-test="tooltip" {...props}>
30 <OverlayArrow>
31 <svg width={8} height={8}>
32 <path d="M0 0,L4 4,L8 0" />
33 </svg>
34 </OverlayArrow>
35 Edit
36 </Tooltip>
37 </TooltipTrigger>
38 );
39}
40
41let renderTooltip = props => render(<TestTooltip {...props} />);
42

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected