Turn off generating notes if all notes folders are off in the new project wizard (#1192)

This commit is contained in:
Veronica Berglyd Olsen
2022-10-20 23:00:52 +02:00
parent ae856dda6a
commit 34dbf3557c
2 changed files with 31 additions and 4 deletions
@@ -202,6 +202,14 @@ def testToolProjectWizard_Run(qtbot, monkeypatch, nwGUI, fncDir, prjType):
assert isinstance(customPage, ProjWizardCustomPage)
assert nwWiz.button(QWizard.NextButton).isEnabled()
# Make sure the fourth option is also turned off
customPage.addPlot.setChecked(False)
customPage.addChar.setChecked(False)
customPage.addWorld.setChecked(False)
customPage._syncSwitches()
assert not customPage.addNotes.isChecked()
# Switch everything back on again
customPage.addPlot.setChecked(True)
customPage.addChar.setChecked(True)
customPage.addWorld.setChecked(True)