template_0205
This commit is contained in:
37
RN_TEMPLATE/.maestro/flows/FavoritePodcast.yaml
Normal file
37
RN_TEMPLATE/.maestro/flows/FavoritePodcast.yaml
Normal file
@@ -0,0 +1,37 @@
|
||||
# flow: run the login flow and then navigate to the demo podcast list screen, favorite a podcast, and then switch the list to only be favorites.
|
||||
|
||||
appId: ${MAESTRO_APP_ID}
|
||||
env:
|
||||
FAVORITES_TEXT: "Switch on to only show favorites" # en.demoPodcastListScreen.accessibility.switch
|
||||
onFlowStart:
|
||||
- runFlow: ../shared/_OnFlowStart.yaml
|
||||
---
|
||||
- runFlow: ../shared/_Login.yaml
|
||||
- tapOn: "Podcast"
|
||||
- assertVisible: "React Native Radio episodes"
|
||||
- tapOn:
|
||||
text: ${FAVORITES_TEXT}
|
||||
- assertVisible: "This looks a bit empty"
|
||||
- tapOn:
|
||||
text: ${FAVORITES_TEXT}
|
||||
# https://maestro.mobile.dev/troubleshooting/known-issues#android-accidental-double-tap
|
||||
retryTapIfNoChange: false
|
||||
- repeat:
|
||||
times: 2
|
||||
commands:
|
||||
- scroll
|
||||
- copyTextFrom:
|
||||
text: "RNR .*" # assumes all podcast titles start with RNR
|
||||
index: 2 # grab the third one, others might not be fully visible
|
||||
- longPressOn: ${maestro.copiedText}
|
||||
- scrollUntilVisible:
|
||||
element:
|
||||
text: ${FAVORITES_TEXT}
|
||||
direction: UP
|
||||
timeout: 50000
|
||||
speed: 90
|
||||
visibilityPercentage: 100
|
||||
- tapOn:
|
||||
text: ${FAVORITES_TEXT}
|
||||
- assertVisible: ${maestro.copiedText}
|
||||
|
||||
13
RN_TEMPLATE/.maestro/flows/Login.yaml
Normal file
13
RN_TEMPLATE/.maestro/flows/Login.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
#flow: Login
|
||||
#intent:
|
||||
# Open up our app and use the default credentials to login
|
||||
# and navigate to the demo screen
|
||||
|
||||
appId: ${MAESTRO_APP_ID} # the app id of the app we want to test
|
||||
# You can find the appId of an Ignite app in the `app.json` file
|
||||
# as the "package" under the "android" section and "bundleIdentifier" under the "ios" section
|
||||
onFlowStart:
|
||||
- runFlow: ../shared/_OnFlowStart.yaml
|
||||
---
|
||||
- runFlow: ../shared/_Login.yaml
|
||||
|
||||
Reference in New Issue
Block a user