From f2c1ce1ccad7330e305f7bbb746113b7b0b373d3 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Wed, 17 Jun 2020 20:05:30 +0200 Subject: [PATCH] Second attempt at fixing test where the word counter suddenly isn't working --- tests/test_gui.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_gui.py b/tests/test_gui.py index c4c03ea6..eeb6d490 100644 --- a/tests/test_gui.py +++ b/tests/test_gui.py @@ -215,10 +215,11 @@ def testMainWindows(qtbot, nwTempGUI, nwRef, nwTemp): qtbot.keyClick(nwGUI.docEditor, Qt.Key_Return, delay=keyDelay) qtbot.wait(stepDelay) - nwGUI.docEditor.wCounter.run() - qtbot.wait(stepDelay) + nwGUI.docEditor.wCounter.start() + qtbot.wait(1000) # Save the document + assert nwGUI.docEditor.docChanged assert nwGUI.saveDocument() assert not nwGUI.docEditor.docChanged qtbot.wait(stepDelay)