appId: ${APP_ID}
env:
  USERNAME: foo.bar@example.com
---
# === SETUP (once) ===
# Media files (sample.mp4, chats1-3) are pushed to the device by run-with-env.sh
- runFlow: ../../shared/launch-app.yml
- runFlow: ../../shared/login-to-community.yml
- tapOn: Chats
- runFlow: ../../shared/handle-bottom-sheet.yml

# === MEASURE CHAT OPENING PERFORMANCE ===
- runFlow: ./subFlows/measure-chat-opening.yml

# === SINGLE CHAT FLOW ===
- runFlow: ./subFlows/single-chat-flow.yml

# === SEND DOCUMENT FLOW ===
- runFlow: ./subFlows/send-document.yml

# === NAVIGATE TO Chat home screen
- tapOn: Back
- assertVisible: Chats

# === GROUP CHAT FLOW ===
- runFlow: ./subFlows/group-chat-flow.yml

# === NAVIGATE TO Chat home screen
- tapOn: Back
- assertVisible: Chats

# Complex chat flows
- runFlow: ./subFlows/send-tag-to-group.yml
- runFlow: ./subFlows/unread-counter-flow.yml
- runFlow: ./subFlows/mute-unmute-chat-flow.yml
