mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
03f3e8b3e0
* Try fixing DM creation in Maestro * Also handle 'invite new people to this room' with first invite to aRoomName * Try adding a room list clean up sub-flow * No need to press back button after successful invites * Looks like 'hideKeyboard' works as 'back' and messes up with the navigation. Try using the workaround described in https://docs.maestro.dev/reference/commands-available/hidekeyboard#workarounds
59 lines
1.4 KiB
YAML
59 lines
1.4 KiB
YAML
appId: ${MAESTRO_APP_ID}
|
|
---
|
|
# Purpose: Test the creation and deletion of a room
|
|
- tapOn: "Create room"
|
|
- tapOn: "New room"
|
|
- tapOn: "Add name…"
|
|
- inputText: "aRoomName"
|
|
- tapOn: "Add description…"
|
|
- inputText: "aRoomTopic"
|
|
- tapOn: "Create"
|
|
- takeScreenshot: build/maestro/320-createAndDeleteRoom
|
|
- tapOn: "Search for someone"
|
|
- inputText: ${MAESTRO_INVITEE1_MXID}
|
|
- tapOn:
|
|
text: ${MAESTRO_INVITEE1_MXID}
|
|
index: 1
|
|
- tapOn: "Finish"
|
|
- runFlow:
|
|
when:
|
|
visible: 'Invite new contact to this room?'
|
|
commands:
|
|
- tapOn:
|
|
id: "confirm_invite_unknown"
|
|
- tapOn: "aRoomName"
|
|
- tapOn: "Invite"
|
|
# assert there's 1 member and 1 invitee
|
|
- tapOn: "Search for someone"
|
|
- inputText: ${MAESTRO_INVITEE2_MXID}
|
|
- tapOn:
|
|
text: ${MAESTRO_INVITEE2_MXID}
|
|
index: 1
|
|
# Hide keyboard by tapping on an external element in case it's displayed, otherwise it will 'eat' the back button press
|
|
- tapOn:
|
|
# Navigation title
|
|
text: "Invite people"
|
|
- tapOn: "Invite"
|
|
- runFlow:
|
|
when:
|
|
visible: 'Invite new contact to this room?'
|
|
commands:
|
|
- tapOn:
|
|
id: "confirm_invite_unknown"
|
|
- scrollUntilVisible:
|
|
direction: DOWN
|
|
element:
|
|
text: "People"
|
|
- tapOn: "People"
|
|
# assert there's 1 member and 2 invitees
|
|
- tapOn: "Back"
|
|
- scroll
|
|
- scroll
|
|
- tapOn: "Leave room"
|
|
- tapOn: "Leave"
|
|
- runFlow:
|
|
when:
|
|
visible: 'You need an invite in order to join'
|
|
commands:
|
|
- tapOn: "Back"
|