test: verify approved panel minimum and native toolbar outputs
This commit is contained in:
1 parent
f00dee7791
commit
c96a27c033
4 files changed
+192
-7
No files matched your search
@@ -32,7 +32,8 @@ def main():
|
||||
assert bounds[3] * 96 / dpi <= 46, (bounds, dpi)
|
||||
assert win32gui.GetWindowLong(handle, -20) & 0x8
|
||||
buttons = [button.rectangle() for button in ui.toolbar.descendants(control_type="Button")]
|
||||
assert len({(rect.top, rect.bottom) for rect in buttons}) == 1, buttons
|
||||
centers = [(rect.top + rect.bottom) / 2 for rect in buttons]
|
||||
assert max(centers) - min(centers) <= 2, buttons
|
||||
ui.toolbar.capture_as_image().save(str(evidence / "toolbar.png"))
|
||||
if ui.panel.exists(timeout=0.2) and ui.panel.is_visible():
|
||||
ui.collapse()
|
||||
|
||||
Reference in new issue
Block a user