Skip to content

Commit

Permalink
test: pressable test cases (#46861)
Browse files Browse the repository at this point in the history
Summary:
Part of this: #46757

Solves:
ME2E0015
ME2E0016

## Changelog:

[ Internal ] [ Added ] - Add e2e test for pressable

Pull Request resolved: #46861

Test Plan:
```
yarn e2e-test-ios
yarn e2e-test-android
```

Reviewed By: arushikesarwani94

Differential Revision: D63986636

Pulled By: cipolleschi

fbshipit-source-id: 4b58da97be3c7a14584f0343b6449b407c9517d2
  • Loading branch information
deepanshushuklad11 authored and facebook-github-bot committed Oct 9, 2024
1 parent d0e5053 commit 3102a58
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions packages/rn-tester/.maestro/pressable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,28 @@ appId: ${APP_ID} # iOS: com.meta.RNTester.localDevelopment | Android: com.facebo
id: "one_press_me_button"
- assertVisible:
text: "2x onPress"
- scrollUntilVisible:
element:
id: "pressable_feedback_events"
direction: DOWN
speed: 10
visibilityPercentage: 100
- tapOn:
id: "pressable_feedback_events_button"
- scrollUntilVisible:
element:
text: "pressIn"
direction: DOWN
speed: 10
- assertVisible:
text: "press"
- assertVisible:
text: "pressOut"
- longPressOn:
id: "pressable_feedback_events_button"
- assertVisible:
text: "pressIn"
- assertVisible:
text: "longPress"
- assertVisible:
text: "pressOut"

0 comments on commit 3102a58

Please sign in to comment.