diff --git a/packages/react-native/Libraries/Components/View/__tests__/View-itest.js b/packages/react-native/Libraries/Components/View/__tests__/View-itest.js index 7822b5f1053..2c2779ecd0d 100644 --- a/packages/react-native/Libraries/Components/View/__tests__/View-itest.js +++ b/packages/react-native/Libraries/Components/View/__tests__/View-itest.js @@ -339,18 +339,30 @@ describe('', () => { }); describe('accessibilityElementsHidden', () => { - it('is not propagated to mounting layer, it is iOS only prop', () => { + it("is an iOS-only prop and ignored by Fantom (Android)'s BaseViewConfig", () => { const root = Fantom.createRoot(); Fantom.runTask(() => { - root.render(); + root.render( + , + ); }); - expect( - root - .getRenderedOutput({props: ['accessibilityElementsHidden']}) - .toJSX(), - ).toEqual(null); + expect(root.getRenderedOutput().toJSX()).toEqual(); + }); + }); + + describe('aria-hidden', () => { + it('is mapped to importantForAccessibility', () => { + const root = Fantom.createRoot(); + + Fantom.runTask(() => { + root.render(); + }); + + expect(root.getRenderedOutput().toJSX()).toEqual( + , + ); }); });