Skip to content

Add Fantom integration tests#55760

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

Add Fantom integration tests#55760
sammy-SC wants to merge 1 commit intofacebook: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
Copy link
Copy Markdown

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
sammy-SC added a commit to sammy-SC/react-native that referenced this pull request Feb 26, 2026
Summary:

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

Changelog: [Internal]

Differential Revision: D94360684
@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
Copy link
Copy Markdown

meta-codesync bot commented Feb 26, 2026

This pull request has been merged in 426cae6.

zoontek pushed a commit to zoontek/react-native that referenced this pull request Mar 9, 2026
Summary:
Pull Request resolved: facebook#55760

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

Changelog: [Internal]

Reviewed By: CalixTang

Differential Revision: D94360684

fbshipit-source-id: 474bd7b8d82dea65d8104f231b22199faacae254
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