appId: ${APP_ID}
---
# Navigate from Learning home to the Paths list, exercise every tab,
# and confirm the target path is visible in the Finished tab.
- scrollUntilVisible:
    element: 'Your learning paths'
    direction: DOWN
# "View all" index 1 = Paths (see courses.yml for ordering note).
- tapOn:
    text: 'View all'
    index: 1
- assertVisible: 'Learning paths'

# All tab
- assertVisible: 'All'
- tapOn: 'All'

# Pending tab
- assertVisible: 'Pending'
- tapOn: 'Pending'

# In progress tab
- assertVisible: 'In progress'
- tapOn: 'In progress'

# Finished tab — completed path should appear here
- assertVisible: 'Finished'
- tapOn: 'Finished'
- extendedWaitUntil:
    visible:
      text: '.*${PATH_NAME}.*'
    timeout: 13000
