Release Kaleido 0.1.11 with movie details and foreground library sync
All checks were successful
Validate and publish Kaleido / android (push) Successful in 2m40s
All checks were successful
Validate and publish Kaleido / android (push) Successful in 2m40s
This commit is contained in:
parent
2a83fe0db5
commit
5230692b8d
17 changed files with 374 additions and 60 deletions
32
scripts/verify_movie_details.py
Normal file
32
scripts/verify_movie_details.py
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
"""Targeted movie detail layout and related-title check on the authorized onn."""
|
||||
import re
|
||||
from device import screenshot
|
||||
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)
|
||||
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'
|
||||
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')
|
||||
for _ in range(3):
|
||||
root=snapshot()
|
||||
if 'Related movies' in labels(root):break
|
||||
key(20)
|
||||
assert 'Related movies' in labels(root),'Plex related movies must appear beneath Cast'
|
||||
key(20)
|
||||
root=wait(lambda r:bool(focus(r)) and 'Related movies' in labels(r),'Related movie focus')
|
||||
screenshot('movie-related-0.1.11')
|
||||
key(23)
|
||||
wait(lambda r:focus(r)=='Play' or focus(r).startswith('Resume'),'Related movie opens')
|
||||
key(4)
|
||||
wait(lambda r:bool(focus(r)) and 'Related movies' in labels(r),'Related movie restores row focus')
|
||||
print('PASS related movies open and Back restores the selected card',flush=True)
|
||||
key(4);focused(selected);key(4);key(4)
|
||||
Loading…
Add table
Add a link
Reference in a new issue