The GUI test now covers the spell checker as well
This commit is contained in:
+1
-1
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user