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

Function enter

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

Source from the content-addressed store, hash-verified

584 let tree = render(<NestedSheets />);
585 await user.click(tree.getByRole('button', {name: 'Open sheet'}));
586 let enter = async overlay => {
587 await act(async () => {
588 overlay.querySelector('[data-sheet-scroll]').dispatchEvent(new Event('scrollend'));
589 });
590 };
591 await enter(tree.getByTestId('parent-overlay'));
592
593 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