Skip to content

Add Functional Tests for Pressable Component #12461

Open
@chiaramooney

Description

@chiaramooney
Contributor

Test cases should be added to the E2E test app (Fabric) to validate the following functionality scenarios.

### Tasks
- [ ] Pressable should update border styling upon fast refresh.
- [ ] Pressable should update children upon fast refresh.
- [ ] Pressable should update disabled styling upon fast refresh.
- [x] Pressable should update applicable styling upon hover.
- [x] Pressable should update applicable styling upon press.
- [x] Pressable should perform action upon press.
- [x] Pressable should be able to track number of clicks.
- [x] Pressable should perform action upon onPressIn.
- [x] Pressable should perform action upon onPressOut.
- [ ] Pressable should perform action upon onLongPress.
- [x] Pressable should not perform action upon press when disabled.
- [ ] Pressable behavior should change upon delayLongPress adjustment.
- [ ] Pressable should register onPress action when hit within hitSlop range.

Activity

added this to the Next milestone on Nov 30, 2023
added and removed
Needs: Triage 🔍New issue that needs to be reviewed by the issue management team (label applied by bot)
on Nov 30, 2023
modified the milestones: Next, 0.74, Backlog on Jan 31, 2024
added and removed
Invalid Triagehttps://github.com/microsoft/react-native-windows/wiki/Triage-Process (label applied by bot)
on Feb 29, 2024
added
New ArchitectureBroad category for issues that apply to the RN "new" architecture of Turbo Modules + Fabric
on Mar 7, 2024
removed their assignment
on May 14, 2024
chiaramooney

chiaramooney commented on Apr 1, 2025

@chiaramooney
ContributorAuthor

As a "good first issue" the rows in the table represent individual function tests (usually for component properties).

Instructions for adding new functional tests here: https://github.com/microsoft/react-native-windows/wiki/E2E-Testing-(Fabric)#writing-functional-tests

Functional tests are usually fairly small, but some will be easier than others to implement.

linked a pull request that will close this issue on Jun 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Relationships

None yet

    Development

    Participants

    @jonthysell@chrisglein@chiaramooney

    Issue actions

      Add Functional Tests for Pressable Component · Issue #12461 · microsoft/react-native-windows