diff --git a/packages/react-native/Libraries/Modal/__tests__/Modal-itest.js b/packages/react-native/Libraries/Modal/__tests__/Modal-itest.js index c858bbc7dde..1651e54a716 100644 --- a/packages/react-native/Libraries/Modal/__tests__/Modal-itest.js +++ b/packages/react-native/Libraries/Modal/__tests__/Modal-itest.js @@ -268,6 +268,31 @@ describe('', () => { ); }); }); + + describe('visible', () => { + it('renders a Modal with visible="true"', () => { + const root = Fantom.createRoot(); + + Fantom.runTask(() => { + root.render(); + }); + + expect(root.getRenderedOutput({props: ['visible']}).toJSX()).toEqual( + + + , + ); + }); + it('renders nothing when visible="false"', () => { + const root = Fantom.createRoot(); + + Fantom.runTask(() => { + root.render(); + }); + + expect(root.getRenderedOutput({props: ['visible']}).toJSX()).toBeNull(); + }); + }); // ... more props }); describe('ref', () => {