This commit is contained in:
Veronica Berglyd Olsen
2024-02-01 21:28:20 +01:00
parent 27fa356846
commit c1a14e7aa5
+3 -2
View File
@@ -153,8 +153,9 @@ def testToolWelcome_Open(qtbot: QtBot, monkeypatch, nwGUI, fncPath):
assert listModel.removeEntry(listModel.createIndex(1, 0)) is False assert listModel.removeEntry(listModel.createIndex(1, 0)) is False
# Delete last entry with keypress # Delete last entry with keypress
qtbot.mouseClick(vPort, Qt.MouseButton.LeftButton, pos=posOne, delay=10) welcome.show()
qtbot.keyClick(tabOpen, Qt.Key.Key_Delete, delay=10) tabOpen._selectFirstItem()
qtbot.keyClick(tabOpen, Qt.Key.Key_Delete)
assert len(CONFIG.recentProjects.listEntries()) == 0 assert len(CONFIG.recentProjects.listEntries()) == 0
# qtbot.stop() # qtbot.stop()