react-native-testing-library icon indicating copy to clipboard operation
react-native-testing-library copied to clipboard

Fix translations text not being found by getByText

Open pierrezimmermannbam opened this issue 4 years ago • 1 comments

Summary

Pr is still a draft. Fixes #937

Test plan

pierrezimmermannbam avatar May 01 '22 19:05 pierrezimmermannbam

This issue is related to architecture discussion in #972.

ReactTestRendererNode seems to be better suited for handling text related stuff, but otherwise we rely on ReactTestInstance it would be great to have an easy way of getting ReactTestRendererNode from ReactTestInstance. It seems that React Test Renderer source has such function but unfortunately it is not exported and we are limited to calling toJSON on ReactTestRenderer instance.

mdjastrzebski avatar May 04 '22 13:05 mdjastrzebski

Closing as changes contained it the PR would break other features of RNTL.

mdjastrzebski avatar Dec 30 '22 09:12 mdjastrzebski