appId: ${APP_ID}
env:
  USERNAME: foo.bar@example.com
---
- assertVisible: 'New chat'
- tapOn: 'New chat'
- assertVisible: 'New group'
- tapOn: 'Search'
- inputText: John Doe
- assertVisible: 'User: John Doe'
- tapOn: 'User: John Doe'
- assertVisible: 'Write a message...'
- tapOn: 'Write a message...'
- inputText: E2E test message
- tapOn: 'Send'
- runFlow: ../../../shared/dismiss-keyboard.yml
- assertVisible: Back
- tapOn: Back

# Assert most recent conversation and correct latest message
- assertVisible:
    text: .*John Doe.*E2E test message.*
    below: 'Search'
