Skip to content

Add Fantom integration tests#55760

Open
sammy-SC wants to merge 1 commit intofacebook:mainfrom
sammy-SC:export-D94360684
Open

Add Fantom integration tests#55760
sammy-SC wants to merge 1 commit intofacebook:mainfrom
sammy-SC:export-D94360684

Conversation

@sammy-SC
Copy link
Contributor

Summary:
Add new Fantom integration tests for TouchableOpacity, achieving 40.54% line coverage for TouchableOpacity.js (from 0%).

Tests cover:

  • Basic rendering and structure (accessible="true", rn-view output)
  • Style prop application (width, height, backgroundColor)
  • activeOpacity prop (default opacity behavior, custom style opacity)
  • onPress event handling via click dispatch
  • Disabled state behavior (prevents press, sets accessibilityState)
  • Children rendering
  • Ref instance validation (ReactNativeElement, RN:View tag name)

Changelog: [Internal]

Differential Revision: D94360684

Summary:
Add new Fantom integration tests for TouchableOpacity, achieving 40.54% line coverage for TouchableOpacity.js (from 0%).

Tests cover:
- Basic rendering and structure (accessible="true", rn-view output)
- Style prop application (width, height, backgroundColor)
- activeOpacity prop (default opacity behavior, custom style opacity)
- onPress event handling via click dispatch
- Disabled state behavior (prevents press, sets accessibilityState)
- Children rendering
- Ref instance validation (ReactNativeElement, RN:View tag name)

Changelog: [Internal]

Differential Revision: D94360684
@meta-codesync
Copy link

meta-codesync bot commented Feb 25, 2026

@sammy-SC has exported this pull request. If you are a Meta employee, you can view the originating Diff in D94360684.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants