Skip to content

Commit 8017a10

Browse files
committed
fixup! Try to fix test_plotting_of_snake_oil
1 parent d1c859c commit 8017a10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/ert/ui_tests/gui/test_plotting_of_snake_oil.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ def plot_figure(qtbot, heat_equation_storage, snake_oil_case_storage, request):
6060
gui = _setup_main_window(storage_config, args_mock, log_handler, storage)
6161
qtbot.addWidget(gui)
6262

63-
plot_tool = gui.tools["Create plot"]
64-
plot_tool.trigger()
65-
63+
button_plot_tool = gui.findChild(QPushButton, "button_Create_plot")
64+
assert button_plot_tool
65+
qtbot.mouseClick(button_plot_tool, Qt.LeftButton)
6666
plot_window = wait_for_child(gui, qtbot, PlotWindow)
6767
central_tab = plot_window._central_tab
6868

0 commit comments

Comments
 (0)