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":