[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

@@ -164,12 +164,12 @@ describe('SubmissionFormFooterComponent Component', () => {
});
});
it('should call dispatchSave on save', () => {
it('should call dispatchManualSave on save', () => {
comp.save(null);
fixture.detectChanges();
expect(submissionServiceStub.dispatchSave).toHaveBeenCalledWith(submissionId);
expect(submissionServiceStub.dispatchManualSave).toHaveBeenCalledWith(submissionId);
});
it('should call dispatchSaveForLater on save for later', () => {