diff --git a/tests/reference/gui/2_nwProject.nwx b/tests/reference/gui/2_nwProject.nwx index a4aea14a..dd2b6333 100644 --- a/tests/reference/gui/2_nwProject.nwx +++ b/tests/reference/gui/2_nwProject.nwx @@ -1,5 +1,5 @@ - + Project Name Project Title @@ -11,7 +11,9 @@ None None 0 - + + With This Stuff + New Note diff --git a/tests/test_gui.py b/tests/test_gui.py index 2640d943..7226f6d3 100644 --- a/tests/test_gui.py +++ b/tests/test_gui.py @@ -301,7 +301,7 @@ def testProjectEditor(qtbot, nwTempGUI, nwRef): for c in "John Doh": qtbot.keyClick(projEdit.tabMain.editAuthors, c, delay=keyDelay) - #Test Status Tab + # Test Status Tab projEdit.tabWidget.setCurrentWidget(projEdit.tabStatus) projEdit.tabStatus.listBox.item(2).setSelected(True) qtbot.mouseClick(projEdit.tabStatus.delButton, Qt.LeftButton) @@ -313,6 +313,23 @@ def testProjectEditor(qtbot, nwTempGUI, nwRef): qtbot.keyClick(projEdit.tabStatus.editName, c, delay=keyDelay) qtbot.mouseClick(projEdit.tabStatus.saveButton, Qt.LeftButton) + # Auto-Replace Tab + projEdit.tabWidget.setCurrentWidget(projEdit.tabReplace) + for c in "Th is ": + qtbot.keyClick(projEdit.tabReplace.editKey, c, delay=keyDelay) + for c in "With This Stuff ": + qtbot.keyClick(projEdit.tabReplace.editValue, c, delay=keyDelay) + qtbot.mouseClick(projEdit.tabReplace.addButton, Qt.LeftButton) + + for c in "Delete": + qtbot.keyClick(projEdit.tabReplace.editKey, c, delay=keyDelay) + for c in "This Stuff": + qtbot.keyClick(projEdit.tabReplace.editValue, c, delay=keyDelay) + qtbot.mouseClick(projEdit.tabReplace.addButton, Qt.LeftButton) + + projEdit.tabReplace.listBox.topLevelItem(1).setSelected(True) + qtbot.mouseClick(projEdit.tabReplace.delButton, Qt.LeftButton) + projEdit._doSave() # Open again, and check project settings