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

Function enter

packages/react-aria-components/test/Sheet.test.js:704–708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

702 let tree = render(<NestedSheets />);
703 await user.click(tree.getByRole('button', {name: 'Open sheet'}));
704 let enter = async overlay => {
705 await act(async () => {
706 overlay.querySelector('[data-sheet-scroll]').dispatchEvent(new Event('scrollend'));
707 });
708 };
709 await enter(tree.getByTestId('parent-overlay'));
710
711 await user.click(tree.getByRole('button', {name: 'Open child'}));

Callers 1

Sheet.test.jsFile · 0.85

Calls 1

actFunction · 0.85

Tested by

no test coverage detected