Skip to content

Commit 6ba3753

Browse files
authored
chore: Upgrade Maestro to v2 (#6599)
1 parent 7cb3e12 commit 6ba3753

21 files changed

+14
-24
lines changed

.github/workflows/maestro-android.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ jobs:
1111
- name: Checkout Repository
1212
uses: actions/checkout@v4
1313

14+
- name: Setup Java
15+
uses: actions/setup-java@v4
16+
with:
17+
distribution: 'temurin'
18+
java-version: '17'
19+
1420
- name: Download APK
1521
uses: actions/download-artifact@v4
1622
with:
@@ -50,8 +56,7 @@ jobs:
5056
adb shell monkey -p chat.rocket.reactnative -c android.intent.category.LAUNCHER 1
5157
sleep 10
5258
adb shell am force-stop chat.rocket.reactnative
53-
export MAESTRO_USE_GRAALJS=true
54-
export MAESTRO_DRIVER_STARTUP_TIMEOUT=60000
59+
export MAESTRO_DRIVER_STARTUP_TIMEOUT=120000
5560
maestro test .maestro --format junit --output maestro-report.xml
5661
5762
- name: Upload Test Report

.github/workflows/maestro-ios.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ jobs:
1111
- name: Checkout Repo
1212
uses: actions/checkout@v4
1313

14+
- name: Setup Java
15+
uses: actions/setup-java@v4
16+
with:
17+
distribution: 'temurin'
18+
java-version: '17'
19+
1420
- name: Download App
1521
uses: actions/download-artifact@v4
1622
with:
@@ -80,8 +86,7 @@ jobs:
8086
8187
- name: Run Tests
8288
run: |
83-
export MAESTRO_USE_GRAALJS=true
84-
export MAESTRO_DRIVER_STARTUP_TIMEOUT=60000
89+
export MAESTRO_DRIVER_STARTUP_TIMEOUT=120000
8590
maestro test .maestro --format junit --output maestro-report.xml
8691
8792
- name: Upload Test Report

.maestro/helpers/login.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
appId: chat.rocket.reactnative
22
tags:
33
- 'util'
4-
jsEngine: graaljs
54
onFlowStart:
65
- runFlow:
76
file: setup.yaml
87
env:
98
skipUser: true
10-
119
- runFlow:
1210
when:
1311
true: ${!USERNAME}

.maestro/helpers/navigate-to-room-action.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
appId: chat.rocket.reactnative
22
name: Navigate to room action
3-
jsEngine: graaljs
43
tags:
54
- 'util'
65

.maestro/helpers/navigate-to-room.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
appId: chat.rocket.reactnative
22
name: Navigate to room
3-
jsEngine: graaljs
43
tags:
54
- 'util'
65

.maestro/helpers/navigate-to-workspace.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
appId: chat.rocket.reactnative
2-
jsEngine: graaljs
32
tags:
43
- 'util'
54

.maestro/onboarding/change-password.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
appId: chat.rocket.reactnative
22
name: Required Password Change
3-
jsEngine: graaljs
43
onFlowStart:
54
- runFlow: '../helpers/setup.yaml'
65
- evalScript: ${output.createdUser = output.utils.createUserWithPasswordChange()}

.maestro/onboarding/forgot-password.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
appId: chat.rocket.reactnative
22
name: Forgot Password
3-
jsEngine: graaljs
43
onFlowStart:
54
- runFlow: '../helpers/setup.yaml'
65
- evalScript: ${output.createdUser = output.utils.createUser()}

.maestro/onboarding/legal.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
appId: chat.rocket.reactnative
22
name: Legal
3-
jsEngine: graaljs
43
onFlowStart:
54
- runFlow: '../helpers/setup.yaml'
65

.maestro/onboarding/login/invalid-credentials.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
appId: chat.rocket.reactnative
22
name: Login (Invalid Credentials)
3-
jsEngine: graaljs
43
onFlowStart:
54
- runFlow: '../../helpers/setup.yaml'
65
onFlowEnd:

0 commit comments

Comments
 (0)