A television raised the whole OSD and timebar on every playback start. The chrome controller is born visible, and its auto-hide clock cannot arm until the first frame lands, so the controls did not merely appear early: they appeared exactly when the picture did, and then sat over the opening five seconds of every movie and episode. The timeline is gated behind the first frame, so the bar materialised on top of the video rather than over the loading spinner, which is what makes it read as a pop-up rather than as chrome that was already there. The route now opens with no chrome on TV. Nothing is lost: the loading spinner and buffering overlay are their own overlays, the screen focus node owns back, and the first D-pad press raises the controls the way it already does after every auto-hide. Pointer and touch platforms keep the chrome, where the viewer's hand is on the surface and the title and back affordance belong over the spinner. Initial presentation now follows initial visibility. They were separate: seeding only visibility would leave the route claiming its chrome was still presented, so PlayerNavigationCoordinator would read back as "hide the chrome", hide() would no-op against chrome that was never up, and the press would be swallowed instead of leaving the player. Controls that mount with the chrome already down now claim focus themselves. Focus normally reaches them through the hide transition, and their own autofocus cannot win it back because the screen node took it during the loading phase. Left alone, the screen node kept primary focus and its self-heal raised the entire OSD on the first D-pad press, which put the chrome straight back over the picture and bypassed the transient seek and transport indicators. Both player spinners now carry a label. They were bare progress indicators, so a screen reader announced nothing at all while the picture was coming up, and the TV Maestro flows had no way left to tell a loading player from a playing one once the Pause button stopped appearing on its own. The two TV flows are repaired to match. They waited on that button, and now wait for the labelled spinner to clear, which cannot happen before the media is opened. 05 additionally reaches Search by D-pad rather than a percentage coordinate, because a tap flips InputModeTracker to pointer mode and collapses the rail it is aiming at, and it gates on the play-next prompt's own Cancel action: "Next Episode" is also the credits skip button, so the old assertion could pass without the prompt ever opening. close #1765
79 lines
2.5 KiB
YAML
79 lines
2.5 KiB
YAML
appId: com.edde746.plezy
|
|
name: TV Back dismisses Next Episode without leaving playback
|
|
tags:
|
|
- e2e
|
|
- regression
|
|
- tv
|
|
- playback
|
|
---
|
|
- runFlow: ../subflows/onboard_jellyfin_tv.yaml
|
|
# Reach Search with the D-pad, the way 10_tv_settings_navigation.yaml does. A
|
|
# tap here flips InputModeTracker into pointer mode, which collapses the rail
|
|
# to icons and leaves no "Search" label to hit — and a percentage coordinate
|
|
# does not survive the jump from a phone in forced TV mode to a 4K television.
|
|
- pressKey: "Remote Dpad Left"
|
|
- extendedWaitUntil:
|
|
visible: "Search"
|
|
timeout: 15000
|
|
- repeat:
|
|
times: 12
|
|
while:
|
|
notVisible:
|
|
text: "Search"
|
|
focused: true
|
|
commands:
|
|
- pressKey: "Remote Dpad Down"
|
|
- pressKey: "Remote Dpad Center"
|
|
- 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$"
|
|
# The TV player opens with its chrome down (#1765), so the Pause button can no
|
|
# longer stand in for "the player has finished loading". Wait for the detail
|
|
# screen to go first: the labelled spinner is necessarily up the moment the
|
|
# player route owns the frame, and it only clears once playback reports its
|
|
# first frame or gives up, so this can never advance before the media opens.
|
|
- extendedWaitUntil:
|
|
notVisible: "(?s)^Play S1E1$"
|
|
timeout: 30000
|
|
- extendedWaitUntil:
|
|
notVisible: "Loading video"
|
|
timeout: 30000
|
|
- pressKey: "Remote Media Fast Forward"
|
|
- pressKey: "Remote Media Fast Forward"
|
|
# Gate on the prompt's own Cancel action, the label the iOS branch below taps.
|
|
# "Next Episode" is the credits skip button at this point in the episode, so
|
|
# waiting on it would let Back fire before the prompt ever opened.
|
|
- extendedWaitUntil:
|
|
visible: "(?s)^Cancel$"
|
|
timeout: 20000
|
|
- runFlow:
|
|
when:
|
|
platform: iOS
|
|
commands:
|
|
- tapOn: "Cancel"
|
|
- runFlow:
|
|
when:
|
|
platform: Android
|
|
commands:
|
|
- pressKey: "back"
|
|
# Dismissal is animated, so give it a bounded wait rather than one instant look.
|
|
- extendedWaitUntil:
|
|
notVisible: "(?s)^Cancel$"
|
|
timeout: 10000
|
|
- assertNotVisible: "Overview"
|
|
- pressKey: "Remote Dpad Up"
|
|
- extendedWaitUntil:
|
|
visible: "(?s).*Maestro Episode 1.*"
|
|
timeout: 10000
|