@@ -74,7 +74,7 @@ def _evaluate(coeffs, x):
74
74
75
75
# The Run dialog opens, wait until restart appears and the tab is ready
76
76
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 )
78
78
qtbot .waitUntil (lambda : run_dialog ._tab_widget .currentWidget () is not None )
79
79
80
80
# Assert that the number of boxes in the detailed view is
@@ -108,7 +108,7 @@ def handle_dialog():
108
108
write_poly_eval (failing_reals = failing_reals_second_try )
109
109
qtbot .mouseClick (run_dialog .restart_button , Qt .MouseButton .LeftButton )
110
110
111
- qtbot .waitUntil (run_dialog .restart_button .isVisible , timeout = 60000 )
111
+ qtbot .waitUntil (lambda : not run_dialog .restart_button .isHidden () , timeout = 60000 )
112
112
qtbot .waitUntil (lambda : run_dialog ._tab_widget .currentWidget () is not None )
113
113
114
114
# We expect to have the same amount of realizations in list_model
@@ -139,7 +139,7 @@ def handle_dialog():
139
139
write_poly_eval (failing_reals = failing_reals_third_try )
140
140
qtbot .mouseClick (run_dialog .restart_button , Qt .MouseButton .LeftButton )
141
141
142
- qtbot .waitUntil (run_dialog .done_button .isVisible , timeout = 60000 )
142
+ qtbot .waitUntil (lambda : not run_dialog .done_button .isHidden () , timeout = 60000 )
143
143
qtbot .waitUntil (lambda : run_dialog ._tab_widget .currentWidget () is not None )
144
144
145
145
# We expect to have the same amount of realizations in list_model
0 commit comments