Skip to content

Commit

Permalink
Add lineHeight screenshot tests
Browse files Browse the repository at this point in the history
Differential Revision: D65094482
  • Loading branch information
NickGerleman authored and facebook-github-bot committed Oct 29, 2024
1 parent cc6f75b commit 9a8459d
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions packages/rn-tester/js/examples/Text/TextExample.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -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>
</>
Expand Down

0 comments on commit 9a8459d

Please sign in to comment.