mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
test: pressable test cases (#46861)
Summary: Part of this: https://github.com/facebook/react-native/issues/46757 Solves: ME2E0015 ME2E0016 ## Changelog: [ Internal ] [ Added ] - Add e2e test for pressable Pull Request resolved: https://github.com/facebook/react-native/pull/46861 Test Plan: ``` yarn e2e-test-ios yarn e2e-test-android ``` Reviewed By: arushikesarwani94 Differential Revision: D63986636 Pulled By: cipolleschi fbshipit-source-id: 4b58da97be3c7a14584f0343b6449b407c9517d2
This commit is contained in:
committed by
Facebook GitHub Bot
parent
d0e5053528
commit
3102a58df3
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user