From c2bff3f1baedac4de79fdc4849b231f9380de9a2 Mon Sep 17 00:00:00 2001 From: Eivind Jahren Date: Tue, 1 Oct 2024 14:52:18 +0200 Subject: [PATCH] Use wait_for_child for getting RunDialog --- tests/ert/ui_tests/gui/conftest.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/ert/ui_tests/gui/conftest.py b/tests/ert/ui_tests/gui/conftest.py index 338445e0d0c..15fb23fbb39 100644 --- a/tests/ert/ui_tests/gui/conftest.py +++ b/tests/ert/ui_tests/gui/conftest.py @@ -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)