Skip to content

Commit

Permalink
Use wait_for_child for getting RunDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
eivindjahren committed Oct 1, 2024
1 parent 9f8d73a commit c2bff3f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/ert/ui_tests/gui/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,7 @@ def handle_dialog():

# The Run dialog opens, click show details and wait until done appears
# then click it
qtbot.waitUntil(lambda: gui.findChild(RunDialog) is not None)
run_dialog = gui.findChild(RunDialog)

run_dialog = wait_for_child(gui, qtbot, RunDialog)
qtbot.waitUntil(run_dialog.done_button.isVisible, timeout=200000)
qtbot.waitUntil(lambda: run_dialog._tab_widget.currentWidget() is not None)

Expand Down

0 comments on commit c2bff3f

Please sign in to comment.