Second attempt at fixing test where the word counter suddenly isn't working
This commit is contained in:
+3
-2
@@ -215,10 +215,11 @@ def testMainWindows(qtbot, nwTempGUI, nwRef, nwTemp):
|
|||||||
qtbot.keyClick(nwGUI.docEditor, Qt.Key_Return, delay=keyDelay)
|
qtbot.keyClick(nwGUI.docEditor, Qt.Key_Return, delay=keyDelay)
|
||||||
|
|
||||||
qtbot.wait(stepDelay)
|
qtbot.wait(stepDelay)
|
||||||
nwGUI.docEditor.wCounter.run()
|
nwGUI.docEditor.wCounter.start()
|
||||||
qtbot.wait(stepDelay)
|
qtbot.wait(1000)
|
||||||
|
|
||||||
# Save the document
|
# Save the document
|
||||||
|
assert nwGUI.docEditor.docChanged
|
||||||
assert nwGUI.saveDocument()
|
assert nwGUI.saveDocument()
|
||||||
assert not nwGUI.docEditor.docChanged
|
assert not nwGUI.docEditor.docChanged
|
||||||
qtbot.wait(stepDelay)
|
qtbot.wait(stepDelay)
|
||||||
|
|||||||
Reference in New Issue
Block a user