The GUI test now covers the spell checker as well

This commit is contained in:
Veronica K. B. Olsen
2019-05-18 18:20:01 +02:00
parent bf1b4d5d3b
commit 8c49279280
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ class GuiMainMenu(QMenuBar):
self.theProject.setSpellCheck(self.toolsSpellCheck.isChecked())
self.theParent.docEditor.setSpellCheck(self.toolsSpellCheck.isChecked())
logger.verbose("Spell check is set to %s" % str(self.theProject.spellCheck))
return
return True
def _showAbout(self):
msgBox = QMessageBox()
+2
View File
@@ -47,6 +47,8 @@ def testMainWindows(qtbot, nwTempGUI, nwRef):
nwGUI.treeView._getTreeItem("25fc0e7096fc6").setExpanded(True)
nwGUI.treeView._getTreeItem("31489056e0916").setSelected(True)
assert nwGUI.openSelectedItem()
nwGUI.mainMenu.toolsSpellCheck.setChecked(True)
assert nwGUI.mainMenu._toggleSpellCheck()
# Type something into the document
nwGUI.docEditor.setFocus()