From c1a14e7aa5f0e337132319c172d49adbfb0ea7e9 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Thu, 1 Feb 2024 21:28:20 +0100 Subject: [PATCH] Fix test --- tests/test_tools/test_tools_welcome.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_tools/test_tools_welcome.py b/tests/test_tools/test_tools_welcome.py index 60518786..56b61f1e 100644 --- a/tests/test_tools/test_tools_welcome.py +++ b/tests/test_tools/test_tools_welcome.py @@ -153,8 +153,9 @@ def testToolWelcome_Open(qtbot: QtBot, monkeypatch, nwGUI, fncPath): assert listModel.removeEntry(listModel.createIndex(1, 0)) is False # Delete last entry with keypress - qtbot.mouseClick(vPort, Qt.MouseButton.LeftButton, pos=posOne, delay=10) - qtbot.keyClick(tabOpen, Qt.Key.Key_Delete, delay=10) + welcome.show() + tabOpen._selectFirstItem() + qtbot.keyClick(tabOpen, Qt.Key.Key_Delete) assert len(CONFIG.recentProjects.listEntries()) == 0 # qtbot.stop()