21 lines
1 KiB
Python
21 lines
1 KiB
Python
"""Reproduce only the Continue Watching episode-row reentry focus regression."""
|
|
from device import screenshot
|
|
from verify_ui import launch,key,snapshot,focus,focused,labels,wait
|
|
|
|
launch();key(20,2)
|
|
for _ in range(20):
|
|
if 'Hazbin Hotel' in focus(snapshot()):break
|
|
key(22)
|
|
else:raise AssertionError('Hazbin Hotel fixture is missing from Continue Watching')
|
|
focused('S1 · E7');key(23);focused('Resume from')
|
|
key(20);focused('7. Hello Rosie!')
|
|
key(21,7);focused('1. Overture')
|
|
assert '7. Hello Rosie!' not in labels(snapshot()),'Episode 7 must be offscreen before leaving'
|
|
key(4);focused('Hazbin Hotel');key(23);focused('Resume from')
|
|
wait(lambda r:'7. Hello Rosie!' in labels(r),'Reopened row reveals the entry episode')
|
|
key(20);focused('7. Hello Rosie!')
|
|
screenshot('episode-row-reentry-031')
|
|
print('PASS Home → Hazbin S1E7 → episode 1 → Back → reopen → Down focuses episode 7',flush=True)
|
|
key(4);focused('Hazbin Hotel');key(4)
|
|
wait(lambda r:focus(r) in ('Play','Resume'),'Home hero focus')
|
|
key(19);focused('Home')
|