Skip to content

Commit

Permalink
113996: Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Atmire-Kristof committed Apr 11, 2024
1 parent 072ea80 commit 713564b
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ describe('SubmissionObjectEffects test suite', () => {
config,
sectionDefinition.mandatory,
sectionDefinition.sectionType,
sectionDefinition.extendsSectionType,
sectionDefinition.visibility,
enabled,
sectionData,
Expand Down
2 changes: 2 additions & 0 deletions src/app/submission/objects/submission-objects.reducer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ describe('submissionReducer test suite', () => {
config: 'https://rest.api/dspace-spring-rest/api/config/submissionforms/traditionalpageone',
mandatory: true,
sectionType: 'submission-form',
extendsSectionType: undefined,
visibility: undefined,
collapsed: false,
enabled: true,
Expand All @@ -255,6 +256,7 @@ describe('submissionReducer test suite', () => {
true,
SectionsType.SubmissionForm,
undefined,
undefined,
true,
{},
null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ describe('SubmissionSectionCcLicensesComponent', () => {
serverValidationErrors: [],
header: 'test header',
id: 'test section id',
sectionType: SectionsType.SubmissionForm
sectionType: SectionsType.SubmissionForm,
extendsSectionType: undefined,
};

const submissionCcLicenses: SubmissionCcLicence[] = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ const sectionObject: SectionDataObject = {
serverValidationErrors: [],
header: 'submit.progressbar.describe.stepone',
id: 'traditionalpageone',
sectionType: SectionsType.SubmissionForm
sectionType: SectionsType.SubmissionForm,
extendsSectionType: undefined,
};

describe('SubmissionSectionContainerComponent test suite', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ const sectionObject: SectionDataObject = {
serverValidationErrors: [],
header: 'submit.progressbar.describe.stepone',
id: 'traditionalpageone',
sectionType: SectionsType.SubmissionForm
sectionType: SectionsType.SubmissionForm,
extendsSectionType: undefined,
};

const testFormConfiguration = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ const sectionObject: SectionDataObject = {
header: 'submission.sections.submit.progressbar.identifiers',
id: 'identifiers',
sectionType: SectionsType.Identifiers,
extendsSectionType: undefined,
sectionVisibility: null
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ const sectionObject: SectionDataObject = {
serverValidationErrors: [],
header: 'submit.progressbar.describe.license',
id: 'license',
sectionType: SectionsType.License
sectionType: SectionsType.License,
extendsSectionType: undefined,
};

const dynamicFormControlEvent: DynamicFormControlEvent = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ describe('SubmissionSectionUploadComponent test suite', () => {
serverValidationErrors: [],
header: 'submit.progressbar.describe.upload',
id: 'upload-id',
sectionType: SectionsType.Upload
sectionType: SectionsType.Upload,
extendsSectionType: undefined,
};
submissionId = mockSubmissionId;
collectionId = mockSubmissionCollectionId;
Expand Down
8 changes: 8 additions & 0 deletions src/app/submission/submission.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@ describe('SubmissionService test suite', () => {
config: 'https://rest.api/dspace-spring-rest/api/config/submissionforms/keyinformation',
mandatory: true,
sectionType: 'submission-form',
extendsSectionType: undefined,
data: {},
errorsToShow: [],
serverValidationErrors: []
Expand All @@ -591,6 +592,7 @@ describe('SubmissionService test suite', () => {
config: 'https://rest.api/dspace-spring-rest/api/config/submissionforms/indexing',
mandatory: false,
sectionType: 'submission-form',
extendsSectionType: undefined,
data: {},
errorsToShow: [],
serverValidationErrors: []
Expand All @@ -601,6 +603,7 @@ describe('SubmissionService test suite', () => {
config: 'https://rest.api/dspace-spring-rest/api/config/submissionforms/publicationchannel',
mandatory: true,
sectionType: 'submission-form',
extendsSectionType: undefined,
data: {},
errorsToShow: [],
serverValidationErrors: []
Expand All @@ -611,6 +614,7 @@ describe('SubmissionService test suite', () => {
config: 'https://rest.api/dspace-spring-rest/api/config/submissionforms/acknowledgement',
mandatory: false,
sectionType: 'submission-form',
extendsSectionType: undefined,
data: {},
errorsToShow: [],
serverValidationErrors: []
Expand All @@ -621,6 +625,7 @@ describe('SubmissionService test suite', () => {
config: 'https://rest.api/dspace-spring-rest/api/config/submissionforms/identifiers',
mandatory: false,
sectionType: 'submission-form',
extendsSectionType: undefined,
data: {},
errorsToShow: [],
serverValidationErrors: []
Expand All @@ -631,6 +636,7 @@ describe('SubmissionService test suite', () => {
config: 'https://rest.api/dspace-spring-rest/api/config/submissionforms/references',
mandatory: false,
sectionType: 'submission-form',
extendsSectionType: undefined,
data: {},
errorsToShow: [],
serverValidationErrors: []
Expand All @@ -641,6 +647,7 @@ describe('SubmissionService test suite', () => {
config: 'https://rest.api/dspace-spring-rest/api/config/submissionuploads/upload',
mandatory: true,
sectionType: 'upload',
extendsSectionType: undefined,
data: {},
errorsToShow: [],
serverValidationErrors: []
Expand All @@ -651,6 +658,7 @@ describe('SubmissionService test suite', () => {
config: '',
mandatory: true,
sectionType: 'license',
extendsSectionType: undefined,
data: {},
errorsToShow: [],
serverValidationErrors: []
Expand Down

0 comments on commit 713564b

Please sign in to comment.