diff --git a/src/ert/gui/main_window.py b/src/ert/gui/main_window.py index 2af15f86727..f32fc5fe374 100644 --- a/src/ert/gui/main_window.py +++ b/src/ert/gui/main_window.py @@ -181,7 +181,7 @@ def add_sim_run_option(simulation_id: str) -> None: if isinstance(widget, RunDialog): add_sim_run_option(prev_date_time) elif self.run_dialog_counter > 2: - add_sim_run_option(date_time) + add_sim_run_option(simulation_id) self.results_button.setEnabled(True) diff --git a/tests/ert/ui_tests/gui/test_main_window.py b/tests/ert/ui_tests/gui/test_main_window.py index 4bdcad197c5..96dad43de8e 100644 --- a/tests/ert/ui_tests/gui/test_main_window.py +++ b/tests/ert/ui_tests/gui/test_main_window.py @@ -732,3 +732,5 @@ def wait_for_simulation_completed(): run_experiment() wait_for_simulation_completed() assert len(button_simulation_status.menu().actions()) == 3 + for choice in button_simulation_status.menu().actions(): + assert "Single realization test-run" in choice.text()