mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Try fixing Maestro tests (again) (#6149)
* Try fixing Maestro tests again: they fail when creating a room because the texts have changed * Try using a retry on the webview before the login so we skip Chrome's setup * Try handling edge case when leaving a room does not remove the screen
This commit is contained in:
committed by
GitHub
parent
f4a61ec5a4
commit
9536afe3dc
@@ -9,29 +9,35 @@ appId: ${MAESTRO_APP_ID}
|
|||||||
id: "login-continue"
|
id: "login-continue"
|
||||||
## MAS page
|
## MAS page
|
||||||
## Conditional workflow to pass the Chrome first launch welcome page.
|
## Conditional workflow to pass the Chrome first launch welcome page.
|
||||||
- runFlow:
|
- retry:
|
||||||
when:
|
maxRetries: 3
|
||||||
visible: 'Use without an account'
|
|
||||||
commands:
|
commands:
|
||||||
- tapOn: "Use without an account"
|
- runFlow:
|
||||||
## For older chrome versions
|
when:
|
||||||
- runFlow:
|
visible: 'Use without an account'
|
||||||
when:
|
commands:
|
||||||
visible: 'Accept & continue'
|
- tapOn: "Use without an account"
|
||||||
commands:
|
## For older chrome versions
|
||||||
- tapOn: "Accept & continue"
|
- runFlow:
|
||||||
- runFlow:
|
when:
|
||||||
when:
|
visible: 'Accept & continue'
|
||||||
visible: 'No thanks'
|
commands:
|
||||||
commands:
|
- tapOn: "Accept & continue"
|
||||||
- tapOn: "No thanks"
|
- runFlow:
|
||||||
|
when:
|
||||||
|
visible: 'No thanks'
|
||||||
|
commands:
|
||||||
|
- tapOn: "No thanks"
|
||||||
## Working when running Maestro locally, but not on the CI yet.
|
## Working when running Maestro locally, but not on the CI yet.
|
||||||
- extendedWaitUntil:
|
- retry:
|
||||||
visible:
|
maxRetries: 3
|
||||||
id: "form-1"
|
commands:
|
||||||
timeout: 10000
|
- extendedWaitUntil:
|
||||||
|
visible:
|
||||||
|
id: "form-1"
|
||||||
|
timeout: 10000
|
||||||
- tapOn:
|
- tapOn:
|
||||||
id: "form-1"
|
id: "form-1"
|
||||||
- inputText: ${MAESTRO_USERNAME}
|
- inputText: ${MAESTRO_USERNAME}
|
||||||
- pressKey: Enter
|
- pressKey: Enter
|
||||||
- tapOn:
|
- tapOn:
|
||||||
|
|||||||
@@ -13,3 +13,8 @@ appId: ${MAESTRO_APP_ID}
|
|||||||
- scroll
|
- scroll
|
||||||
- tapOn: "Leave room"
|
- tapOn: "Leave room"
|
||||||
- tapOn: "Leave"
|
- tapOn: "Leave"
|
||||||
|
- runFlow:
|
||||||
|
when:
|
||||||
|
visible: 'You need an invite in order to join'
|
||||||
|
commands:
|
||||||
|
- tapOn: "Back"
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ appId: ${MAESTRO_APP_ID}
|
|||||||
# Purpose: Test the creation and deletion of a room
|
# Purpose: Test the creation and deletion of a room
|
||||||
- tapOn: "Create a new conversation or room"
|
- tapOn: "Create a new conversation or room"
|
||||||
- tapOn: "New room"
|
- tapOn: "New room"
|
||||||
- tapOn: "e.g. your project name"
|
- tapOn: "Add name…"
|
||||||
- inputText: "aRoomName"
|
- inputText: "aRoomName"
|
||||||
- tapOn: "What is this room about?"
|
- tapOn: "Add description…"
|
||||||
- inputText: "aRoomTopic"
|
- inputText: "aRoomTopic"
|
||||||
- tapOn: "Create"
|
- tapOn: "Create"
|
||||||
- takeScreenshot: build/maestro/320-createAndDeleteRoom
|
- takeScreenshot: build/maestro/320-createAndDeleteRoom
|
||||||
@@ -37,3 +37,8 @@ appId: ${MAESTRO_APP_ID}
|
|||||||
- scroll
|
- scroll
|
||||||
- tapOn: "Leave room"
|
- tapOn: "Leave room"
|
||||||
- tapOn: "Leave"
|
- tapOn: "Leave"
|
||||||
|
- runFlow:
|
||||||
|
when:
|
||||||
|
visible: 'You need an invite in order to join'
|
||||||
|
commands:
|
||||||
|
- tapOn: "Back"
|
||||||
|
|||||||
Reference in New Issue
Block a user