Release Kaleido 0.8.0 with a single-countdown Up Next screen
All checks were successful
Validate and publish Kaleido / android (push) Successful in 2m33s
All checks were successful
Validate and publish Kaleido / android (push) Successful in 2m33s
- Credits and episode endings open Up Next: the video keeps playing in a top-left mini-player beside the next episode, season and related shows. Play next episode carries the only countdown; any remote press stops it. Left then OK on the video, or Back, returns to the credits. - Wait for the player's final timeline report before reloading Home, so Continue Watching reflects the episode just watched. - Remove the source label above Home's featured title. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8533347b51
commit
3e020bd7fa
16 changed files with 217 additions and 84 deletions
|
|
@ -105,24 +105,28 @@ def credits():
|
|||
marker=next(m for m in item['Marker'] if m['type']=='credits')
|
||||
adb('shell','am','force-stop','tv.kaleido.app');adb('logcat','-c')
|
||||
adb('shell','am','start','-n','tv.kaleido.app/.MainActivity','--es','testTitleId','7599','--el','testOffset',str(marker['startTimeOffset']+2000),'--ei','testMode','2','--ez','testValidation','true')
|
||||
await_ready(7599);key(127);focused('Play');key(19);focused('Playback timeline');key(19);focused('Skip credits')
|
||||
screenshot('skip-credits-contrast');key(23)
|
||||
deadline=time.monotonic()+8
|
||||
while time.monotonic()<deadline:
|
||||
time.sleep(.1)
|
||||
ready=adb('logcat','-d','-s','KaleidoPlayback:I','*:S').decode(errors='replace')
|
||||
if 'POSTPLAY focus=play' in ready:break
|
||||
assert 'POSTPLAY focus=play' in ready,'Postplay initial action never received focus'
|
||||
key(22);key(23)
|
||||
wait(lambda r:'Autoplay off' in labels(r),'Autoplay cancellation')
|
||||
screenshot('postplay-season-and-related');time.sleep(6)
|
||||
root=snapshot();assert 'Up next' in labels(root),'Cancellation failed to keep postplay open'
|
||||
assert 'Episodes in this season' in labels(root),'Season episodes absent'
|
||||
assert 'Related shows' in labels(root),'Related shows absent'
|
||||
logs=adb('logcat','-d','-s','KaleidoPlayback:I','AndroidRuntime:E','*:S').decode(errors='replace')
|
||||
assert 'reason=skip-credits' in logs,'Skip credits did not open postplay'
|
||||
assert 'AUTOPLAY starting' not in logs,'Cancelled autoplay still advanced'
|
||||
(OUT/'postplay-cancel.log').write_text(logs)
|
||||
print('PASS skip credits -> postplay, episode/related rows, cancellable autoplay')
|
||||
await_ready(7599)
|
||||
def log():return adb('logcat','-d','-s','KaleidoPlayback:I','AndroidRuntime:E','*:S').decode(errors='replace')
|
||||
# Automatic credits open Up Next at once; with "Show button" the Skip credits button opens it.
|
||||
deadline=time.monotonic()+4
|
||||
while time.monotonic()<deadline and 'POSTPLAY focus=play' not in log():time.sleep(.2)
|
||||
if 'POSTPLAY focus=play' not in log():
|
||||
key(127);focused('Play');key(19);focused('Playback timeline');key(19);focused('Skip credits')
|
||||
screenshot('skip-credits-contrast');key(23)
|
||||
deadline=time.monotonic()+8
|
||||
while time.monotonic()<deadline and 'POSTPLAY focus=play' not in log():time.sleep(.1)
|
||||
assert 'POSTPLAY focus=play' in log(),'Up Next initial action never received focus'
|
||||
screenshot('up-next')
|
||||
key(20) # any press stops the countdown
|
||||
time.sleep(6);root=snapshot();found=labels(root)
|
||||
assert 'Up next' in found or 'UP NEXT' in found,'Cancellation failed to keep Up Next open'
|
||||
assert any(l.startswith('Season ') for l in found),'Season episodes absent'
|
||||
assert 'Related shows' in found,'Related shows absent'
|
||||
logs=log()
|
||||
assert 'AUTOPLAY cancelled' in logs and 'AUTOPLAY starting' not in logs,'Cancelled autoplay still advanced'
|
||||
key(4);time.sleep(1)
|
||||
assert 'POSTPLAY closed' in log(),'Back did not return to the video'
|
||||
(OUT/'postplay-cancel.log').write_text(log())
|
||||
print('PASS credits -> Up Next, episode/related rows, any press stops autoplay, Back returns to video')
|
||||
|
||||
if __name__=='__main__':globals()[sys.argv[1]]()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue