test(HEL-771): wait for sample border transition before capture
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user