Skip to content

Commit

Permalink
Make sure run dialog is closed in gui test
Browse files Browse the repository at this point in the history
  • Loading branch information
larsevj committed Oct 1, 2024
1 parent 9f8d73a commit b1e1d04
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/ert/ui_tests/gui/test_main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,7 @@ def handle_error_dialog(run_dialog):

QTimer.singleShot(20000, lambda: handle_error_dialog(run_dialog))
qtbot.waitUntil(run_dialog.done_button.isVisible, timeout=100000)
qtbot.mouseClick(run_dialog.done_button, Qt.LeftButton)


@pytest.mark.usefixtures("use_tmpdir", "set_site_config")
Expand Down Expand Up @@ -809,14 +810,12 @@ def test_validation_of_experiment_names_in_run_models(
(IteratedEnsembleSmoother.name(), "iterated_ensemble_smoother_panel"),
)
for exp_type, panel_name in experiment_types_to_test:
print(f"{exp_type}")
experiment_types.setCurrentText(exp_type)

experiment_config_panel = get_child(gui, QWidget, name=panel_name)
experiment_field = get_child(
experiment_config_panel, StringBox, name="experiment_field"
)
print(f"{experiment_field.get_text=}")
experiment_field.setText(" @not val id")
assert not run_experiment.isEnabled()

Expand Down

0 comments on commit b1e1d04

Please sign in to comment.