appId: ${APP_ID}
---
# Send video fragment - assumes user is already in a chat conversation
# Note: Media must be added before running this fragment via addMedia in parent flow
# TODO: Need to improve accessibility for Attachments button
- tapOn: .*Add Attachments.*
- tapOn:
    point: 50%,80%

- runFlow:
    file: ../../../shared/pick-asset/pick-from-gallery.yml
    env:
      IOS_POINT: '63%,41%'
      ANDROID_INDEX: '0'
# Wait for compressing and upload the video
- extendedWaitUntil:
    visible: Video 1, Uploaded
    timeout: 50000
- assertVisible: Remove Video 1
- tapOn: Send
- runScript: ../scripts/getTime.js
- assertVisible: .*You, Video, ${output.time}.*
