mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
[835] Auto-save in new Item Submission form breaks the form
Section Metadata field tested. Form Touched filter tested.
This commit is contained in:
@@ -335,6 +335,17 @@ describe('submissionReducer test suite', () => {
|
||||
expect(newState[826].sections.traditionalpageone.data).toEqual(data);
|
||||
});
|
||||
|
||||
it('should update submission section metadata properly', () => {
|
||||
const data = {
|
||||
} as any;
|
||||
const metadata = ['dc.title', 'dc.contributor.author'];
|
||||
|
||||
const action = new UpdateSectionDataAction(submissionId, 'traditionalpageone', data, [], metadata);
|
||||
const newState = submissionObjectReducer(initState, action);
|
||||
|
||||
expect(newState[826].sections.traditionalpageone.metadata).toEqual(metadata);
|
||||
});
|
||||
|
||||
it('should add submission section errors properly', () => {
|
||||
const errors = [
|
||||
{
|
||||
|
Reference in New Issue
Block a user