appId: ${APP_ID}
---
- waitForAnimationToEnd:
    timeout: 5000
- runFlow:
    when:
      # The bottom sheet handle is rendered even closed. We need to check for the close button.
      # TODO: Improve the accessibility of the bottom sheet handle
      visible: .*Close.*
    commands:
      - extendedWaitUntil:
          visible: .*Close.*
          timeout: 2000
      - assertVisible: .*Bottom sheet handle.*
      - assertVisible: .*Close.*
      - tapOn: .*Close.*
