Skip to content

Add Pressable E2E tests#55955

Closed
NickGerleman wants to merge 4 commits intofacebook:mainfrom
NickGerleman:export-D95311372
Closed

Add Pressable E2E tests#55955
NickGerleman wants to merge 4 commits intofacebook:mainfrom
NickGerleman:export-D95311372

Conversation

@NickGerleman
Copy link
Copy Markdown
Contributor

Summary: Add name fields to 4 Pressable examples in PressableExample.js and create 4 corresponding E2E interaction tests covering content-press, feedback-events, text-press, and hit-slop. Tests verify click interactions and text state changes rather than screenshots.

Reviewed By: cortinico

Differential Revision: D95311372

@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 Mar 6, 2026
Copy link
Copy Markdown
Contributor

@cortinico cortinico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Mar 6, 2026

@NickGerleman has exported this pull request. If you are a Meta employee, you can view the originating Diff in D95311372.

Summary:

Add name fields to 5 Button examples in ButtonExample.js and create 5 corresponding E2E screenshot tests covering default-styling, color-red, two-buttons-flexbox, three-buttons-flexbox, and disabled variants. Skipped accessibility-only examples (no visual difference).

Reviewed By: cortinico

Differential Revision: D95311374
Summary:

Add name fields and testID props to 5 cross-platform BoxShadow examples in BoxShadowExample.js and create 5 corresponding E2E screenshot tests. Tests exclude Android and mac platforms since BoxShadow is only registered in the iOS RNTesterList. Skipped Android-only elevation examples.

Reviewed By: cortinico

Differential Revision: D95311371
Summary:

Add name fields and testID props to 10 static Transform examples in TransformExample.js and create 10 corresponding E2E screenshot tests. Skipped 3 animated examples (Perspective/Rotate/Animation, Animate Translate single prop, Transform origin) since continuous animations produce non-deterministic screenshots.

Reviewed By: cortinico

Differential Revision: D95311369
Summary:

Add name fields to 4 Pressable examples in PressableExample.js and create 4 corresponding E2E interaction tests covering content-press, feedback-events, text-press, and hit-slop. Tests verify click interactions and text state changes rather than screenshots.

Reviewed By: cortinico

Differential Revision: D95311372
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Mar 6, 2026

@NickGerleman has exported this pull request. If you are a Meta employee, you can view the originating Diff in D95311372.

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Mar 6, 2026
Summary:

Add name fields to 4 Pressable examples in PressableExample.js and create 4 corresponding E2E interaction tests covering content-press, feedback-events, text-press, and hit-slop. Tests verify click interactions and text state changes rather than screenshots.

Reviewed By: cortinico

Differential Revision: D95311372
NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Mar 6, 2026
Summary:

Add name fields to 4 Pressable examples in PressableExample.js and create 4 corresponding E2E interaction tests covering content-press, feedback-events, text-press, and hit-slop. Tests verify click interactions and text state changes rather than screenshots.

Reviewed By: cortinico

Differential Revision: D95311372
@meta-codesync meta-codesync bot closed this in 9c1a1ad Mar 6, 2026
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Mar 6, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Mar 6, 2026

This pull request has been merged in 9c1a1ad.

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

Add name fields to 4 Pressable examples in PressableExample.js and create 4 corresponding E2E interaction tests covering content-press, feedback-events, text-press, and hit-slop. Tests verify click interactions and text state changes rather than screenshots.

Reviewed By: cortinico

Differential Revision: D95311372

fbshipit-source-id: 629b6dc3c20b76b7107d15fa17e471c5d00503b3
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