Add lineHeight screenshot tests (#47270)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/47270

Lets add some screenshot tests, along with one more example, and fixing some silly typos in test IDs.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D65094482

fbshipit-source-id: a5f3e06c4737158bf6419364d05668c3feb1bd5e
This commit is contained in:
Nick Gerleman
2024-10-29 17:53:16 -07:00
committed by Facebook GitHub Bot
parent 9f73edee2d
commit 7cb9fa9737
@@ -890,7 +890,7 @@ function LineHeightExample(props: {}): React.Node {
},
styles.wrappedText,
]}
testID="line-height-greater-than-fonst-size">
testID="line-height-greater-than-font-size">
Holisticly formulate inexpensive ideas before best-of-breed benefits.{' '}
<Text style={{fontSize: 20}}>Continually</Text> expedite magnetic
potentialities rather than client-focused interfaces.
@@ -906,7 +906,7 @@ function LineHeightExample(props: {}): React.Node {
},
styles.wrappedText,
]}
testID="line-height-less-than-fonst-size">
testID="line-height-less-than-font-size">
Holisticly formulate inexpensive ideas before best-of-breed benefits.{' '}
<Text style={{fontSize: 20}}>Continually</Text> expedite magnetic
potentialities rather than client-focused interfaces.
@@ -921,7 +921,20 @@ function LineHeightExample(props: {}): React.Node {
},
styles.wrappedText,
]}
testID="line-height-single-line-less-than-fonst-size">
testID="line-height-single-line-less-than-font-size">
Holisticly formulate
</Text>
<Text
style={[
{
fontSize: 16,
lineHeight: 20,
borderColor: 'black',
borderWidth: 1,
},
styles.wrappedText,
]}
testID="line-height-single-line-greater-than-font-size">
Holisticly formulate
</Text>
</>