Skip to content

Commit 2e1eb90

Browse files
committed
Merge branch 'develop' into feature/fga/user_moderation_bottomsheet
2 parents 1ac5674 + 0e5fc8f commit 2e1eb90

File tree

250 files changed

+3337
-2740
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

250 files changed

+3337
-2740
lines changed

.github/workflows/maestro-local.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env:
1111
CI_GRADLE_ARG_PROPERTIES: --stacktrace --no-daemon -Dsonar.gradle.skipCompile=true --no-configuration-cache
1212
ARCH: x86_64
1313
DEVICE: pixel_7_pro
14-
API_LEVEL: 35
14+
API_LEVEL: 33
1515
TARGET: google_apis
1616

1717
jobs:
@@ -56,7 +56,7 @@ jobs:
5656
maestro-cloud:
5757
name: Maestro test suite
5858
runs-on: ubuntu-latest
59-
needs: [build-apk]
59+
needs: [ build-apk ]
6060
# Allow one per PR.
6161
concurrency:
6262
group: ${{ format('maestro-{0}', github.ref) }}
@@ -80,6 +80,7 @@ jobs:
8080
- name: Install maestro
8181
run: curl -fsSL "https://get.maestro.mobile.dev" | bash
8282
- name: Run Maestro tests in emulator
83+
id: maestro_test
8384
uses: reactivecircus/android-emulator-runner@v2
8485
continue-on-error: true
8586
env:
@@ -109,3 +110,8 @@ jobs:
109110
retention-days: 5
110111
overwrite: true
111112
if-no-files-found: error
113+
- name: Fail the workflow in case of error in test
114+
if: steps.maestro_test.outcome != 'success'
115+
run: |
116+
echo "Maestro tests failed. Please check the logs."
117+
exit 1

.github/workflows/post-release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Post-release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
post-release:
10+
runs-on: ubuntu-latest
11+
# Skip in forks
12+
if: github.repository == 'element-hq/element-x-android'
13+
14+
steps:
15+
- name: Trigger pipeline
16+
uses: actions/github-script@v7
17+
with:
18+
github-token: ${{ secrets.ENTERPRISE_ACTIONS_TOKEN }}
19+
script: |
20+
const tag = context.ref.replace('refs/tags/', '');
21+
const inputs = { git_tag: tag };
22+
await github.rest.actions.createWorkflowDispatch({
23+
owner: 'element-hq',
24+
repo: 'element-enterprise',
25+
workflow_id: 'pipeline-android.yml',
26+
ref: 'main',
27+
inputs: inputs
28+
});

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
8383
# https://github.com/codecov/codecov-action
8484
- name: ☂️ Upload coverage reports to codecov
85-
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
85+
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
8686
with:
8787
fail_ci_if_error: true
8888
token: ${{ secrets.CODECOV_TOKEN }}

.idea/kotlinc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.maestro/allTests.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
appId: ${MAESTRO_APP_ID}
2+
androidWebViewHierarchy: devtools
23
---
34
## Check that all env variables required in the whole test suite are declared (to fail faster)
45
- runScript: ./scripts/checkEnv.js

.maestro/tests/account/login.yaml

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,39 @@ appId: ${MAESTRO_APP_ID}
77
- runFlow: ../assertions/assertLoginDisplayed.yaml
88
- tapOn:
99
id: "login-continue"
10+
## MAS page
11+
## Conditional workflow to pass the Chrome first launch welcome page.
12+
- runFlow:
13+
when:
14+
visible: 'Use without an account'
15+
commands:
16+
- tapOn: "Use without an account"
17+
## For older chrome versions
18+
- runFlow:
19+
when:
20+
visible: 'Accept & continue'
21+
commands:
22+
- tapOn: "Accept & continue"
23+
- runFlow:
24+
when:
25+
visible: 'No thanks'
26+
commands:
27+
- tapOn: "No thanks"
28+
## Working when running Maestro locally, but not on the CI yet.
29+
- extendedWaitUntil:
30+
visible:
31+
id: "form-1"
32+
timeout: 10000
1033
- tapOn:
11-
id: "login-email_username"
34+
id: "form-1"
1235
- inputText: ${MAESTRO_USERNAME}
1336
- pressKey: Enter
1437
- tapOn:
15-
id: "login-password"
16-
- inputText: "wrong-password"
17-
- pressKey: Enter
18-
- tapOn: "Continue"
19-
- tapOn: "OK"
20-
- tapOn:
21-
id: "login-password"
22-
- eraseText: 20
38+
id: "form-3"
2339
- inputText: ${MAESTRO_PASSWORD}
2440
- pressKey: Enter
2541
- tapOn: "Continue"
42+
## Back to native world
2643
- runFlow: ../assertions/assertSessionVerificationDisplayed.yaml
2744
- runFlow: ./verifySession.yaml
2845
- runFlow: ../assertions/assertAnalyticsDisplayed.yaml

.maestro/tests/account/verifySession.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ appId: ${MAESTRO_APP_ID}
88
- hideKeyboard
99
- tapOn: "Continue"
1010
- extendedWaitUntil:
11-
visible: "Device verified"
11+
visible: "Verification complete"
1212
timeout: 30000
1313
- tapOn: "Continue"

.maestro/tests/roomList/createAndDeleteDM.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ appId: ${MAESTRO_APP_ID}
77
- tapOn:
88
text: ${MAESTRO_INVITEE1_MXID}
99
index: 1
10+
- tapOn: "Send invite"
1011
- takeScreenshot: build/maestro/330-createAndDeleteDM
1112
- tapOn: "maestroelement2"
1213
- scroll
13-
- tapOn: "Leave conversation"
14+
- tapOn: "Leave room"
1415
- tapOn: "Leave"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
appId: ${MAESTRO_APP_ID}
2+
---
3+
- tapOn: "Start a call"
4+
- takeScreenshot: build/maestro/700-Call
5+
- extendedWaitUntil:
6+
visible: "maestroelement"
7+
timeout: 10000
8+
- takeScreenshot: build/maestro/710-Call
9+
# Hangup
10+
- tapOn: "End call"
11+
- extendedWaitUntil:
12+
visible: "MyRoom"
13+
timeout: 10000

.maestro/tests/roomList/timeline/timeline.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ appId: ${MAESTRO_APP_ID}
66
- runFlow: messages/text.yaml
77
- runFlow: messages/location.yaml
88
- runFlow: messages/poll.yaml
9+
- runFlow: call/call.yaml
910
- back
1011
- runFlow: ../../assertions/assertHomeDisplayed.yaml

0 commit comments

Comments
 (0)