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"