appId: ${APP_ID}
---
# Navigate from Learning home to the Courses list, exercise every tab,
# and confirm the completed course is visible in the Finished tab.
- scrollUntilVisible:
    element: 'Your courses'
    direction: DOWN
# "View all" links appear once per section on Learning home, in hierarchy
# order: 0 = Courses, 1 = Paths, 2 = Sessions. Assumes the test community
# has all three sections seeded with data.
- tapOn:
    text: 'View all'
    index: 0
- assertVisible: Courses

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

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

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

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