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

Function open

packages/react-aria-components/test/Sheet.test.js:105–108  ·  view source on GitHub ↗
(tree)

Source from the content-addressed store, hash-verified

103 });
104
105 async function open(tree) {
106 await user.click(tree.getByRole('button', {name: 'Open sheet'}));
107 return tree.getByRole('dialog');
108 }
109
110 it('renders an accessible modal dialog with default class names and attributes', async () => {
111 let tree = render(<TestSheet />);

Callers 1

Sheet.test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected