Force document save when manually calling save document

This commit is contained in:
Veronica Berglyd Olsen
2024-05-02 22:30:58 +02:00
parent 2b8338f537
commit 917977ae13
3 changed files with 18 additions and 10 deletions
+2
View File
@@ -522,6 +522,8 @@ def testGuiMain_Editing(qtbot, monkeypatch, nwGUI, projPath, tstPaths, mockRnd):
assert docEditor.docChanged
nwGUI.saveDocument()
assert docEditor.docChanged is False
nwGUI.forceSaveDocument()
assert docEditor.docChanged is False
nwGUI.rebuildIndex()
# Open and view the edited document