appId: com.edde746.plezy
name: TV Back dismisses Next Episode without leaving playback
tags:
  - e2e
  - regression
  - tv
  - playback
---
- runFlow: ../subflows/onboard_jellyfin_tv.yaml
- tapOn:
    point: "6%,22%"
- tapOn: "Search"
- extendedWaitUntil:
    visible: "Search movies, shows, music..."
    timeout: 10000
- tapOn: "Search movies, shows, music..."
- inputText: "Maestro Show"
- tapOn:
    point: "87%,90%"
- extendedWaitUntil:
    visible: "(?s)^Maestro Show, TV show, (?:watched|unwatched)$"
    timeout: 15000
- tapOn: "(?s)^Maestro Show, TV show, (?:watched|unwatched)$"
- waitForAnimationToEnd:
    timeout: 5000
- tapOn: "(?s)^Play S1E1$"
- extendedWaitUntil:
    visible: "Pause"
    timeout: 30000
- pressKey: "Remote Media Fast Forward"
- pressKey: "Remote Media Fast Forward"
- extendedWaitUntil:
    visible: "Next Episode"
    timeout: 20000
- runFlow:
    when:
      platform: iOS
    commands:
      - tapOn: "Cancel"
- runFlow:
    when:
      platform: Android
    commands:
      - pressKey: "back"
- assertNotVisible: "Next Episode"
- assertNotVisible: "Overview"
- pressKey: "Remote Dpad Up"
- extendedWaitUntil:
    visible: "(?s).*Maestro Episode 1.*"
    timeout: 10000
