Skip to content

Commit 2f306bb

Browse files
committed
Fix test_restart_failed_realizations
1 parent 0bb8442 commit 2f306bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/ert/ui_tests/gui/test_restart_ensemble_experiment.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def _evaluate(coeffs, x):
7474

7575
# The Run dialog opens, wait until restart appears and the tab is ready
7676
run_dialog = wait_for_child(gui, qtbot, RunDialog)
77-
qtbot.waitUntil(run_dialog.restart_button.isVisible, timeout=60000)
77+
qtbot.waitUntil(lambda: not run_dialog.restart_button.isHidden(), timeout=60000)
7878
qtbot.waitUntil(lambda: run_dialog._tab_widget.currentWidget() is not None)
7979

8080
# Assert that the number of boxes in the detailed view is
@@ -108,7 +108,7 @@ def handle_dialog():
108108
write_poly_eval(failing_reals=failing_reals_second_try)
109109
qtbot.mouseClick(run_dialog.restart_button, Qt.MouseButton.LeftButton)
110110

111-
qtbot.waitUntil(run_dialog.restart_button.isVisible, timeout=60000)
111+
qtbot.waitUntil(lambda: not run_dialog.restart_button.isHidden(), timeout=60000)
112112
qtbot.waitUntil(lambda: run_dialog._tab_widget.currentWidget() is not None)
113113

114114
# We expect to have the same amount of realizations in list_model
@@ -139,7 +139,7 @@ def handle_dialog():
139139
write_poly_eval(failing_reals=failing_reals_third_try)
140140
qtbot.mouseClick(run_dialog.restart_button, Qt.MouseButton.LeftButton)
141141

142-
qtbot.waitUntil(run_dialog.done_button.isVisible, timeout=60000)
142+
qtbot.waitUntil(lambda: not run_dialog.done_button.isHidden(), timeout=60000)
143143
qtbot.waitUntil(lambda: run_dialog._tab_widget.currentWidget() is not None)
144144

145145
# We expect to have the same amount of realizations in list_model

0 commit comments

Comments
 (0)