appId: ${APP_ID}
env:
  USERNAME: zulu-e2e
  PASSWORD: '12345678'
  COMMUNITY_NAME: Humand E2E
  MODULE_NAME: Goals
---
- runFlow: ./subFlows/navigate-to-module.yml
- tapOn:
    text: .*My goals.*
- assertVisible:
    text: .*My goals.*
- tapOn:
    text: .*Create goal.*
- assertVisible:
    text: .*Create goal.*
- runScript: ./scripts/get-goal-title.js
- tapOn:
    text: .*Objective title.*
    index: 1
- inputText: ${output.goalTitle}
- runFlow: ../../shared/dismiss-keyboard.yml
- scrollUntilVisible:
    element: .*Criticality.*
    direction: DOWN
- tapOn:
    text: .*Low.*
- scrollUntilVisible:
    element: ^Save$
    direction: DOWN
- tapOn:
    text: ^Save$
- assertVisible:
    text: .*My goals.*
