appId: ${APP_ID}
---
# Assumes Courses screen on the "Finished" tab with COURSE_NAME visible
# (the caller — courses.yml — leaves the user in that state).
# Opens the course, verifies the Detail/Content tabs, enters the lesson
# viewer via "View course", and returns to the Course detail screen.
- tapOn:
    text: '.*${COURSE_NAME}.*'

# Course header shows the title
- assertVisible:
    text: '.*${COURSE_NAME}.*'

# Details tab (default selected). Header / metadata section should be visible.
- assertVisible: 'Details'
- tapOn: 'Details'

# Content tab: modules accordion
- assertVisible: 'Content'
- tapOn: 'Content'

# "View course" navigates to CourseLessons (first lesson in first module).
- tapOn: 'View course'
- extendedWaitUntil:
    visible: 'Continue'
    timeout: 10000
# Footer "Back" calls goBack() → returns to Course detail.
- tapOn: 'Back'
- assertVisible: 'Content'
