Add objectName to all dialogs and made some other minor fixes

This commit is contained in:
Veronica K. B. Olsen
2020-09-22 23:01:09 +02:00
parent 9a9cfe1ce5
commit 3f30923d12
13 changed files with 20 additions and 7 deletions
+3 -1
View File
@@ -5,10 +5,12 @@
import nw
import pytest
import json
from shutil import copyfile
from nwtools import cmpFiles
from os import path
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QDialogButtonBox, QTreeWidgetItem
@@ -891,7 +893,6 @@ def testPreferences(qtbot, nwMinimal, nwTemp, nwRef, tmpConf):
assert not tabAutoRep.autoReplaceDots.isEnabled()
# Save and Check Config
# qtbot.stopForInteraction()
qtbot.mouseClick(nwPrefs.buttonBox.button(QDialogButtonBox.Ok), Qt.LeftButton)
assert tmpConf.confChanged
@@ -901,6 +902,7 @@ def testPreferences(qtbot, nwMinimal, nwTemp, nwRef, tmpConf):
assert nwGUI.mainConf.saveConfig()
# qtbot.stopForInteraction()
nwGUI.closeMain()
refConf = path.join(nwRef, "novelwriter_prefs.conf")