diff --git a/tests/test_gui_startup_smoke.py b/tests/test_gui_startup_smoke.py new file mode 100644 index 0000000..265829a --- /dev/null +++ b/tests/test_gui_startup_smoke.py @@ -0,0 +1,16 @@ +import time + +def test_gui_startup_smoke(live_gui): + """ + Smoke test to ensure the GUI starts and remains running. + """ + proc, _ = live_gui + + # Verify the process is still running + assert proc.poll() is None, "GUI process terminated prematurely on startup" + + # Wait for 2 seconds to ensure stability + time.sleep(2) + + # Verify it's still running after 2 seconds + assert proc.poll() is None, "GUI process crashed within 2 seconds of startup"