mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 05:53:03 +00:00
127655: Fixed getFirstDataDefinition not always returning a correct SubmitDataResponseDefinitionObject, leading to an infinite loading screen
- Also fixed an issue where the collection switcher could accidentally show the old collection name instead of the new one - Also updated the WorkspaceItemPageResolver & WorkflowItemPageResolver to embed the collection to use fewer requests
This commit is contained in:
@@ -27,7 +27,7 @@ import { TestScheduler } from 'rxjs/testing';
|
||||
import { SectionsService } from '../sections/sections.service';
|
||||
import { VisibilityType } from '../sections/visibility-type';
|
||||
|
||||
describe('SubmissionFormComponent Component', () => {
|
||||
describe('SubmissionFormComponent', () => {
|
||||
|
||||
let comp: SubmissionFormComponent;
|
||||
let compAsAny: any;
|
||||
@@ -197,7 +197,6 @@ describe('SubmissionFormComponent Component', () => {
|
||||
});
|
||||
scheduler.flush();
|
||||
|
||||
expect(comp.collectionId).toEqual(submissionObjectNew.collection.id);
|
||||
expect(comp.submissionDefinition).toEqual(submissionObjectNew.submissionDefinition);
|
||||
expect(comp.definitionId).toEqual(submissionObjectNew.submissionDefinition.name);
|
||||
expect(comp.sections).toEqual(submissionObjectNew.sections);
|
||||
@@ -235,7 +234,6 @@ describe('SubmissionFormComponent Component', () => {
|
||||
});
|
||||
scheduler.flush();
|
||||
|
||||
expect(comp.collectionId).toEqual('45f2f3f1-ba1f-4f36-908a-3f1ea9a557eb');
|
||||
expect(submissionServiceStub.resetSubmissionObject).not.toHaveBeenCalled();
|
||||
done();
|
||||
});
|
||||
|
Reference in New Issue
Block a user