Skip to content

Commit

Permalink
Add Pressable testing case in pressable.yml (#46808)
Browse files Browse the repository at this point in the history
Summary:
Part of this: #46757
Solves:

- ME2E0013
- ME2E0014

## Changelog:

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->
[INTERNAL] [ADDED] - Added E2E for Pressable

Pull Request resolved: #46808

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

Reviewed By: rshest

Differential Revision: D63838828

Pulled By: cipolleschi

fbshipit-source-id: a28f654a14fbf7f9b79dedf04f402593042fb4a3
  • Loading branch information
yasir6jan authored and facebook-github-bot committed Oct 4, 2024
1 parent 699f73a commit 1c923ad
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions packages/rn-tester/.maestro/pressable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
appId: ${APP_ID} # iOS: com.meta.RNTester.localDevelopment | Android: com.facebook.react.uiapp
---
- launchApp
- assertVisible: "Components"
- scrollUntilVisible:
element:
id: "Pressable"
direction: DOWN
speed: 40
- tapOn:
id: "Pressable"
- assertVisible:
text: "Change content based on Press"
- assertVisible:
text: "Change style based on Press"
- tapOn:
id: "one_press_me_button"
- assertVisible:
text: "onPress"
- tapOn:
id: "one_press_me_button"
- assertVisible:
text: "2x onPress"

0 comments on commit 1c923ad

Please sign in to comment.