appId: ${APP_ID}
---
# Delete message fragment - assumes user is already in a chat conversation
- tapOn: 'Write a message...'
- inputText: This is a message to delete
- tapOn: Send
- runScript: ../scripts/getTime.js
- scrollUntilVisible:
    element: 'You, This is a message to delete,.*'
    direction: DOWN
- longPressOn: 'You, This is a message to delete,.*'
- assertVisible: Delete
- tapOn: Delete
- tapOn: Delete

# Assert message is deleted
- scrollUntilVisible:
    element: 'You deleted this message, ${output.time}'
    direction: DOWN
