appId: ${APP_ID}
env:
  TITLE: ${TITLE}
  DESCRIPTION: ${DESCRIPTION}
---
# Before calling this flow, we need to call `- pressKey: Home`
- waitForAnimationToEnd:
    timeout: 2000
- runFlow:
    when:
      platform: ios
    commands:
      - assertVisible: '\d+ new items?'
- runFlow:
    when:
      platform: android
    commands:
      - assertVisible: 'Humand.* has \d+ notifications?'

# Open notification center and check for description
- swipe:
    start: 25%, 1%
    end: 25%, 80%
    duration: 500
- assertVisible: .*${TITLE}.*
- assertVisible: .*${DESCRIPTION}.*
