fix: close only completed integration panels during native save
This commit is contained in:
1 parent
d40fa3a750
commit
87e10740f7
4 files changed
+71
-5
No files matched your search
@@ -179,3 +179,13 @@ def test_probe_skips_project_integration_panel_during_com_phase():
|
||||
snapshots = make_probe(gui, (10,)).capture(DialogPhase.PROJECT_INTEGRATION)
|
||||
|
||||
assert snapshots == ()
|
||||
|
||||
|
||||
def test_save_integration_panel_uses_complete_win32_controls_without_huge_uia_tree():
|
||||
gui=FakeGui({10:{'class_name':'#32770','text':'Project Integration','owner':99},
|
||||
11:{'class_name':'Button','text':'&Close','control_id':2}},children={10:(11,)})
|
||||
probe=make_probe(gui,(10,),FakeUia(error=AssertionError('unnecessary large UIA panel scan')))
|
||||
probe.process_name_reader=lambda _: 'ExpeditionPCB.exe'
|
||||
snapshot=probe.capture(DialogPhase.SAVE,pids={1010})[0]
|
||||
assert snapshot.controls[0].control_id==2
|
||||
assert snapshot.diagnostics==()
|
||||
Reference in new issue
Block a user