Release Kaleido 0.6.0 with Silo-style browsing and details
All checks were successful
Validate and publish Kaleido / android (push) Successful in 2m35s
All checks were successful
Validate and publish Kaleido / android (push) Successful in 2m35s
Movie, show, season and episode pages now share the browse previews' design: the same top-right artwork and optional colour wash, title art, a facts line with rating and format badges, and a three-line synopsis. Season and episode pages follow the focused episode's still and details, and the player's controls show title art and the rating badge. The details tests step past the library filter row and read title art from its content description. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
7471f7cac2
commit
24042bebbc
14 changed files with 130 additions and 84 deletions
|
|
@ -5,10 +5,15 @@ from verify_ui import launch,key,focused,wait,focus,labels,snapshot
|
|||
|
||||
launch();key(22,2);focused('TV Shows');key(20);focused('Discover');key(22);focused('Library');key(23)
|
||||
wait(lambda r:any(x.startswith('All genres') for x in labels(r)),'Show library loaded');focused('Library');key(20)
|
||||
if '3 Body Problem' not in focus(snapshot()):key(21)
|
||||
# The genre/sort filters sit between the section tabs and the grid.
|
||||
if 'All genres' in focus(snapshot()):key(20)
|
||||
# The grid is entered beneath the filter that held focus; walk back to the first column.
|
||||
for _ in range(6):
|
||||
if '3 Body Problem' in focus(snapshot()):break
|
||||
key(21)
|
||||
focused('3 Body Problem');key(23);focused('Watch next')
|
||||
root=snapshot();screenshot('show-layout-current')
|
||||
title=next(n for n in root.iter('node') if n.get('text')=='3 Body Problem')
|
||||
title=next(n for n in root.iter('node') if '3 Body Problem' in (n.get('text'),n.get('content-desc')))
|
||||
bounds=list(map(int,re.findall(r'\d+',title.get('bounds'))))
|
||||
back=next((n for n in root.iter('node') if n.get('content-desc')=='Back'),None)
|
||||
print('Title bounds:',bounds,'Back visible:',back is not None,flush=True)
|
||||
|
|
|
|||
|
|
@ -6,13 +6,15 @@ from verify_ui import launch,key,focused,wait,focus,labels,snapshot
|
|||
launch();key(22);focused('Movies');key(20);focused('Discover');key(22);focused('Library');key(23)
|
||||
wait(lambda r:any(x.startswith('All genres') for x in labels(r)),'Movie library loaded')
|
||||
key(20)
|
||||
# The genre/sort filters sit between the section tabs and the grid.
|
||||
if 'All genres' in focus(snapshot()):key(20)
|
||||
wait(lambda r:bool(focus(r)) and focus(r) not in ('Library','Discover') and 'All genres' not in focus(r),'Movie card focus')
|
||||
selected=focus(snapshot());key(23)
|
||||
wait(lambda r:focus(r)=='Play' or focus(r).startswith('Resume'),'Movie play action')
|
||||
root=snapshot();screenshot('movie-details-0.1.11')
|
||||
back=next((n for n in root.iter('node') if n.get('content-desc')=='Back'),None)
|
||||
assert back is not None,'Movie Back control must be visible on entry'
|
||||
assert any(n.get('text') and n.get('text') in selected and int(re.findall(r'\d+',n.get('bounds'))[1])>=88 for n in root.iter('node')),'Movie title must remain below the safe header'
|
||||
assert any((n.get('text') or n.get('content-desc')) and (n.get('text') or n.get('content-desc')) in selected and int(re.findall(r'\d+',n.get('bounds'))[1])>=88 for n in root.iter('node')),'Movie title must remain below the safe header'
|
||||
print('PASS movie safe header and initial action focus',flush=True)
|
||||
key(20)
|
||||
wait(lambda r:focus(r) not in ('Play','') and not focus(r).startswith('Resume'),'Cast or related row focus')
|
||||
|
|
|
|||
|
|
@ -10,7 +10,8 @@ def key(code,count=1):
|
|||
def snapshot():
|
||||
adb('shell','uiautomator','dump','/data/local/tmp/kaleido-window.xml')
|
||||
return ET.fromstring(adb('shell','cat','/data/local/tmp/kaleido-window.xml'))
|
||||
def labels(root):return [n.get('text','') for n in root.iter('node') if n.get('text')]
|
||||
# Title art exposes its title as a content description rather than text.
|
||||
def labels(root):return [n.get('text','') for n in root.iter('node') if n.get('text')]+[n.get('content-desc') for n in root.iter('node') if n.get('content-desc') and not n.get('text')]
|
||||
def focus(root):
|
||||
n=next((n for n in root.iter('node') if n.get('focused')=='true'),None)
|
||||
if n is None:return ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue