v0.32.6_fix2
This commit is contained in:
1 parent
e1ac899ec0
commit
fc8711d4d8
39 files changed
+695
-232
No files matched your search
@@ -114,10 +114,13 @@ with sync_playwright() as browser_tool:
|
||||
assert moves == 0, (width, moves)
|
||||
assert abs(page.evaluate('window.scrollY')-before) <= 2
|
||||
print(f'PASS: {width}px touch emulation, two metric columns, no overflow or scroll jumps')
|
||||
for style,surface in (('square','0px'), ('subtle','5px'), ('rounded','12px'), ('extra','18px')):
|
||||
for style,surface,control in (('square','0px','0px'), ('subtle','5px','4px'),
|
||||
('rounded','12px','8px'), ('extra','18px','12px')):
|
||||
page.evaluate('(s) => document.documentElement.dataset.cornerStyle=s', style)
|
||||
for selector in ('#vhost-test','#entity-test','#badge-test','.stat'):
|
||||
for selector in ('#vhost-test','#entity-test','.stat'):
|
||||
radius = page.locator(selector).first.evaluate('node=>getComputedStyle(node).borderTopLeftRadius')
|
||||
assert radius == surface, (style,selector,radius)
|
||||
print('PASS: vhost, entity, backend badge and metric corner presets')
|
||||
radius = page.locator('#badge-test').evaluate('node=>getComputedStyle(node).borderTopLeftRadius')
|
||||
assert radius == control, (style,'origin protocol badge',radius)
|
||||
print('PASS: vhost, entity, badge/control and metric corner presets')
|
||||
chromium.close()
|
||||
Reference in new issue
Block a user