Skip to content

Commit 982a7bc

Browse files
authored
test: Maestro utils for room test (#6616)
1 parent 6ba3753 commit 982a7bc

File tree

20 files changed

+1063
-263
lines changed

20 files changed

+1063
-263
lines changed

.github/workflows/e2e-build-android.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ jobs:
8484
- name: Build Android Release APK
8585
working-directory: android
8686
run: ./gradlew assembleExperimentalRelease --build-cache --parallel --max-workers=4 --no-daemon --stacktrace
87+
env:
88+
RUNNING_E2E_TESTS: true
8789

8890
- name: Upload APK
8991
uses: actions/upload-artifact@v4

.github/workflows/e2e-build-ios.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ jobs:
9090
APP_STORE_CONNECT_API_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ID }}
9191
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
9292
FASTLANE_REPO_PAT: ${{ secrets.FASTLANE_REPO_PAT }}
93+
RUNNING_E2E_TESTS: true
9394

9495
- name: Find latest xcarchive path
9596
id: find_xcarchive

.github/workflows/maestro-ios.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55

66
jobs:
77
ios-test:
8-
runs-on: macos-15
8+
runs-on: macos-14
99

1010
steps:
1111
- name: Checkout Repo

.maestro/helpers/go-back.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
appId: chat.rocket.reactnative
2+
name: Go back
23
tags:
34
- 'util'
45

.maestro/helpers/launch-app.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
appId: chat.rocket.reactnative
2+
name: Launch app
23
tags:
34
- 'util'
45

.maestro/helpers/login.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
appId: chat.rocket.reactnative
2+
name: Login
23
tags:
34
- 'util'
45
onFlowStart:

.maestro/helpers/logout.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
appId: chat.rocket.reactnative
2+
name: Logout
23
tags:
34
- 'util'
45

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
appId: chat.rocket.reactnative
2+
name: Navigate to login
23
tags:
34
- 'util'
45

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
appId: chat.rocket.reactnative
2+
name: Navigate to recent room
3+
tags:
4+
- 'util'
5+
6+
---
7+
- extendedWaitUntil:
8+
visible:
9+
id: 'rooms-list-view'
10+
timeout: 60000
11+
- tapOn:
12+
id: 'rooms-list-view-search'
13+
- extendedWaitUntil:
14+
visible:
15+
id: 'rooms-list-view-search-input'
16+
timeout: 60000
17+
- extendedWaitUntil:
18+
visible:
19+
id: 'rooms-list-view-item-${ROOM}'
20+
timeout: 60000
21+
- tapOn:
22+
id: 'rooms-list-view-item-${ROOM}'
23+
- extendedWaitUntil:
24+
visible:
25+
id: 'room-view-title-${ROOM}'
26+
timeout: 60000

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
appId: chat.rocket.reactnative
2+
name: Navigate to register
23
tags:
34
- 'util'
45

0 commit comments

Comments
 (0)