Skip to content

Add Functional Tests for TouchableOpacity Component  #12466

Open
@chiaramooney

Description

@chiaramooney
Contributor

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

### Tasks
- [ ] TouchableOpacity should update style upon fast refresh.
- [ ] TouchableOpacity should update underlayColor upon fast refresh.
- [ ] TouchableOpacity should update activeOpacity upon fast refresh.
- [x] TouchableOpacity should fire action upon press.
- [x] TouchableOpacity should fire action upon onPressIn.
- [x] TouchableOpacity should fire action upon onPressOut.
- [x] TouchableOpacity should fire action upon onLongPress.
- [ ] TouchableOpacity should register press in clicked within hitSlop range.
- [x] TouchableOpacity should not be interactable when disabled. 

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
removed their assignment
on Dec 19, 2023
modified the milestones: Next, Backlog on Dec 19, 2023
added
New ArchitectureBroad category for issues that apply to the RN "new" architecture of Turbo Modules + Fabric
on Mar 7, 2024
added and removed
Invalid Triagehttps://github.com/microsoft/react-native-windows/wiki/Triage-Process (label applied by bot)
on Apr 30, 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.

self-assigned this
on Apr 17, 2025
removed their assignment
on Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

No status

Relationships

None yet

    Participants

    @jonthysell@chrisglein@chiaramooney

    Issue actions

      Add Functional Tests for TouchableOpacity Component · Issue #12466 · microsoft/react-native-windows