diff --git a/tests/ert/unit_tests/gui/simulation/test_run_dialog.py b/tests/ert/unit_tests/gui/simulation/test_run_dialog.py index 0287e5ff9c4..8eb978018c3 100644 --- a/tests/ert/unit_tests/gui/simulation/test_run_dialog.py +++ b/tests/ert/unit_tests/gui/simulation/test_run_dialog.py @@ -635,8 +635,7 @@ def test_that_debug_info_button_provides_data_in_clipboard(qtbot: QtBot, storage qtbot.waitUntil(lambda: gui.findChild(RunDialog) is not None, timeout=5000) run_dialog = gui.findChild(RunDialog) assert run_dialog is not None - run_dialog._run_model.cancel() - run_dialog.simulation_done.emit(False, "") + qtbot.waitUntil(lambda: run_dialog.is_simulation_done() == True, timeout=100000) copy_debug_info_button = gui.findChild(QPushButton, "copy_debug_info_button") assert copy_debug_info_button assert isinstance(copy_debug_info_button, QPushButton)