Make sure build settings are closed before deletion

This commit is contained in:
Veronica Berglyd Olsen
2024-05-01 20:18:08 +02:00
parent a56b38694c
commit 53d410a6ee
2 changed files with 22 additions and 8 deletions
+8 -1
View File
@@ -98,7 +98,14 @@ def testManuscript_Builds(qtbot: QtBot, nwGUI: GuiMain, projPath: Path):
manus.show()
manus.loadContent()
# Delete the default build
# Delete the default build, while it is open
manus.buildList.clearSelection()
manus.buildList.setCurrentRow(0)
with qtbot.waitSignal(manus.tbEdit.clicked, timeout=5000):
manus.tbEdit.click()
manus._editSelectedBuild()
manus.buildList.clearSelection()
manus.buildList.setCurrentRow(0)
manus.tbDel.click()