SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

0 0 0 C++

Add E2E tests for Text visual examples (batch 2) (#55963)

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

Add screenshot E2E tests for 9 Text examples that previously lacked E2E coverage:
wrap, substringEmoji, transparentBackgroundColor, padding, spaces,
backgroundColorAttr, fontVariants, textTransform, and lineHeightIOS.

- Added `name` and `testID` to each example in TextExample.ios.js
- Added matching `name` and `testID` to Android examples (wrap, padding, spaces,
  backgroundColorAttr, fontVariants) in TextExample.android.js
- 4 tests are iOS-only (substringEmoji, transparentBackgroundColor, textTransform,
  lineHeightIOS) as these examples don't exist on Android
- 5 tests are cross-platform (excludedPlatforms: ['mac'])
- lineBreakStrategy test was removed due to persistent infra failure preventing
  screenshot capture; name and testID were still added to the source

Reviewed By: cortinico

Differential Revision: D95370389

fbshipit-source-id: 2506619ee2803c44e4f8409f2401819a0ff0c719
N
Nick Gerleman committed
d5a271dd0599caff85652ce0581e3026da470065
Parent: b53b228
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com> on 3/6/2026, 2:12:08 AM