Skip to content

Add Fantom integration tests - #55760

Closed
sammy-SC wants to merge 1 commit into
react:mainfrom
sammy-SC:export-D94360684
Closed

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

Conversation

@sammy-SC

Copy link
Copy Markdown
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

meta-codesync Bot commented Feb 25, 2026

Copy link
Copy Markdown

@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
@meta-codesync meta-codesync Bot closed this in 426cae6 Feb 26, 2026
@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @sammy-SC in 426cae6

When will my fix make it into a release? | How to file a pick request?

@react-native-bot react-native-bot added the Merged This PR has been merged. label Feb 26, 2026
@meta-codesync

meta-codesync Bot commented Feb 26, 2026

Copy link
Copy Markdown

This pull request has been merged in 426cae6.

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 Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants