appId: ${APP_ID}
---
# Assumes Paths screen on the "Finished" tab with PATH_NAME visible
# (paths.yml leaves the user in that state).
# Opens the path, verifies the Details/Content tabs, enters the first
# course via "View path", and returns to the Path detail screen.
- tapOn:
    text: '.*${PATH_NAME}.*'

- assertVisible:
    text: '.*${PATH_NAME}.*'

# Details tab (default)
- assertVisible: 'Details'
- tapOn: 'Details'

# Content tab: list of courses inside the path
- assertVisible: 'Content'
- tapOn: 'Content'

# "View path" navigates to the first available course in the path.
- tapOn: 'View path'
- extendedWaitUntil:
    visible: 'Details'
    timeout: 10000
# Header BackButton (accessibilityLabel="Back") returns to Path detail.
- tapOn: 'Back'
- assertVisible: 'Content'
