From 0c763ea98e1740280f32d32719c2e9c33fa8d7ad Mon Sep 17 00:00:00 2001 From: eduar Date: Tue, 3 Feb 2026 10:14:00 +0100 Subject: [PATCH] fix freefall --- src/ui/test_leak/test_leak.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ui/test_leak/test_leak.py b/src/ui/test_leak/test_leak.py index fc28e42..3180e29 100644 --- a/src/ui/test_leak/test_leak.py +++ b/src/ui/test_leak/test_leak.py @@ -316,6 +316,15 @@ class Test_Leak(Test_Test): else: ok = type(result) is str and "passed" in result.lower() # NORMAL TEST, OK EXPECTED + # If freefall test is OK, autostart the next test (leak_1) + if self.step.step_type == "test_freefall_leak" and ok: + # The parent's `get` will advance to the next step. + # When the new step (leak_1) starts, we want it to auto-click. + # We can't click here because the new step widget is not yet created. + # So we set a flag on the parent. + if self.parent: + self.parent.autostart_next_step = True + # SET DIGITAL OUTPUTS if self.parent.config["hardware_config"].get("external_flush_blow", None) == "present":