[835] Auto-save in new Item Submission form breaks the form

Notifications are enable only for manual submission savings.
This commit is contained in:
Alessandro Martelli
2020-11-16 19:09:17 +01:00
parent 6136162a21
commit 82b7b8aa6f
8 changed files with 77 additions and 6 deletions

View File

@@ -494,6 +494,15 @@ describe('SubmissionService test suite', () => {
});
});
describe('dispatchManualSave', () => {
it('should dispatch a new SaveSubmissionFormAction', () => {
service.dispatchManualSave(submissionId,);
const expected = new SaveSubmissionFormAction(submissionId, true);
expect((service as any).store.dispatch).toHaveBeenCalledWith(expected);
});
});
describe('dispatchSaveForLater', () => {
it('should dispatch a new SaveForLaterSubmissionFormAction', () => {
service.dispatchSaveForLater(submissionId,);