appId: ${APP_ID}
---
# Verifies the Learning home screen renders the expected sections.
# Sections are conditional on data + permissions, so we only assert
# the section header label when its data is present.
- assertVisible: Learning

- runFlow:
    when:
      visible: 'Your courses'
    commands:
      - assertVisible: 'Your courses'
      - assertVisible: 'View all'

- runFlow:
    when:
      visible: 'Your learning paths'
    commands:
      - assertVisible:
          text: 'Your learning paths'
          optional: true

- runFlow:
    when:
      visible: 'Your sessions'
    commands:
      - assertVisible:
          text: 'Your sessions'
          optional: true
