test(HEL-771): wait for sample border transition before capture

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
leefer
2026-10-22 07:43:33 +08:00
co-authored by multica-agent
parent af0417e874
commit fb6139d45c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ for g in r['groups']:
b=Image.open(OUT/(g['name']+'-sample.png')).convert('RGB')
assert a.size==b.size
d=ImageChops.difference(a,b)
pixels=sum(1 for p in d.getdata() if p!=(0,0,0))
pixels=sum(1 for p in d.get_flattened_data() if p!=(0,0,0))
summary['pixels'].append({'name':g['name'],'different_pixels':pixels,'total_pixels':a.width*a.height,'max_channel_delta':max(x[1] for x in d.getextrema())})
if g['width']==1440 and g['theme']=='night' and g['card'] in (0,1):
pair=Image.new('RGB',(a.width*2,a.height+24),'#151515')