Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cloud-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ jobs:
apiKey: ${{ secrets.MARATHON_CLOUD_API_TOKEN }}
application: android-app/app/build/outputs/apk/debug/app-debug.apk
testApplication: android-app/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk
githubToken: ${{ secrets.GITHUB_TOKEN }}
platform: Android
version: 1.0.51
27 changes: 27 additions & 0 deletions .github/workflows/cloud-maestro.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Run maestro tests
on: push
jobs:
run-maestro-android-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run tests
uses: MarathonLabs/action-test@main
with:
apiKey: ${{ secrets.MARATHON_CLOUD_API_TOKEN }}
application: maestro/android/wikipedia.apk
testApplication: maestro/android/flows
platform: maestro/android
version: 1.0.51
run-maestro-ios-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run tests
uses: MarathonLabs/action-test@main
with:
apiKey: ${{ secrets.MARATHON_CLOUD_API_TOKEN }}
application: maestro/ios/wikipedia.zip
testApplication: maestro/ios/flows
platform: maestro/ios
version: 1.0.51
16 changes: 16 additions & 0 deletions maestro/android/flows/android-advanced-flow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
appId: org.wikipedia
tags:
- android
- passing
- advanced
---
- runFlow: subflows/onboarding-android.yaml
- tapOn:
id: "org.wikipedia:id/search_container"
- tapOn:
text: "Non existent view"
optional: true
- runScript: scripts/getSearchQuery.js
- inputText: ${output.result}
- assertVisible: ${output.result}
- runFlow: subflows/launch-clearstate-android.yaml
6 changes: 6 additions & 0 deletions maestro/android/flows/android-failing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
appId: org.wikipedia
tags:
- android
- passing
---
- launchApp
7 changes: 7 additions & 0 deletions maestro/android/flows/android-flow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
appId: org.wikipedia
tags:
- android
- passing
---
- launchApp
- assertVisible: "Doesn't exist"
1 change: 1 addition & 0 deletions maestro/android/flows/scripts/getSearchQuery.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
output.result = 'qwerty';
6 changes: 6 additions & 0 deletions maestro/android/flows/subflows/launch-clearstate-android.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
appId: org.wikipedia
---
- launchApp:
clearState: true
- assertVisible: "Continue"
- assertVisible: "Skip"
15 changes: 15 additions & 0 deletions maestro/android/flows/subflows/onboarding-android.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
appId: org.wikipedia
---
- launchApp:
clearState: true
- tapOn:
text: "Non existent view"
optional: true
- tapOn:
id: "org.wikipedia:id/fragment_onboarding_forward_button"
- tapOn:
id: "org.wikipedia:id/fragment_onboarding_forward_button"
- tapOn:
id: "org.wikipedia:id/fragment_onboarding_forward_button"
- tapOn:
id: "org.wikipedia:id/fragment_onboarding_done_button"
Binary file added maestro/android/wikipedia.apk
Binary file not shown.
25 changes: 25 additions & 0 deletions maestro/ios/flows/ios-advanced-flow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
appId: org.wikimedia.wikipedia
tags:
- ios
- passing
- advanced
---
- runFlow: subflows/onboarding-ios.yaml

# Dismiss the auth modal if visible
- runFlow:
when:
visible: "You have been logged out"
commands:
- tapOn:
text: "Continue without logging in"
- tapOn:
text: "Non existent view"
optional: true
- tapOn: Search Wikipedia
- runScript: scripts/getSearchQuery.js
- inputText: ${output.result}
- eraseText
- inputText: qwerty
- assertVisible: ${output.result}
- runFlow: subflows/launch-clearstate-ios.yaml
7 changes: 7 additions & 0 deletions maestro/ios/flows/ios-failing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
appId: org.wikipedia
tags:
- ios
- failing
---
- launchApp
- assertVisible: "Doesn't exist"
6 changes: 6 additions & 0 deletions maestro/ios/flows/ios-flow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
appId: org.wikimedia.wikipedia
tags:
- ios
- passing
---
- launchApp
1 change: 1 addition & 0 deletions maestro/ios/flows/scripts/getSearchQuery.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
output.result = 'qwerty';
6 changes: 6 additions & 0 deletions maestro/ios/flows/subflows/launch-clearstate-ios.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
appId: org.wikimedia.wikipedia
---
- launchApp:
clearState: true
- assertVisible: "Next"
- assertVisible: "Skip"
15 changes: 15 additions & 0 deletions maestro/ios/flows/subflows/onboarding-ios.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
appId: org.wikimedia.wikipedia
---
- launchApp:
clearState: true
- repeat:
times: 3
commands:
- swipe:
direction: LEFT
duration: 400
- waitForAnimationToEnd
- tapOn: Get started
- tapOn:
text: "Non existent view"
optional: true
Binary file added maestro/ios/wikipedia.zip
Binary file not shown.
Loading