Skip to content

Commit e63fd31

Browse files
committed
Fix test_that_gui_plotter_works_when_no_data
1 parent f5c73aa commit e63fd31

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/ert/ui_tests/gui/test_main_window.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,10 @@ def test_that_gui_plotter_works_when_no_data(qtbot, storage, monkeypatch):
669669
):
670670
gui = _setup_main_window(ert_config, args_mock, GUILogHandler(), storage)
671671
qtbot.addWidget(gui)
672-
gui.tools["Create plot"].trigger()
672+
673+
button_plot_tool = gui.findChild(QPushButton, "button_Create_plot")
674+
assert button_plot_tool
675+
qtbot.mouseClick(button_plot_tool, Qt.LeftButton)
673676
plot_window = wait_for_child(gui, qtbot, PlotWindow)
674677

675678
ensemble_plot_names = get_child(

0 commit comments

Comments
 (0)