appId: com.edde746.plezy
name: Search media and open a result
tags:
  - e2e
  - search
---
- runFlow: ../subflows/ensure_onboarded.yaml
- tapOn: "(?s)^Search.*"
- extendedWaitUntil:
    visible: "Search movies, shows, music..."
    timeout: 10000
- tapOn: "Search movies, shows, music..."
- inputText: "Maestro"
- runFlow:
    when:
      platform: iOS
    commands:
      - pressKey: ENTER
- runFlow:
    when:
      platform: Android
    commands:
      - hideKeyboard
- extendedWaitUntil:
    visible: "(?s).*Maestro Movie.*"
    timeout: 15000
- tapOn: "(?s).*Maestro Movie.*"
- extendedWaitUntil:
    visible: "Overview"
    timeout: 15000
- assertVisible: "A deterministic movie used to verify Plezy's end-to-end flows."
- back
- assertVisible: "(?s)^Maestro Movie.*"
