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

Function TestModal

packages/react-aria-components/test/Dialog.test.js:319–328  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

317
318 it('supports isEntering and isExiting props', async () => {
319 function TestModal(props) {
320 return (
321 <DialogTrigger>
322 <Button />
323 <Modal {...props}>
324 <Dialog aria-label="Modal">A modal</Dialog>
325 </Modal>
326 </DialogTrigger>
327 );
328 }
329
330 let {getByRole, rerender} = render(<TestModal isEntering />);
331

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected