From 9522c12374383d4c4a1c8c2758c8fac1a0c4bf85 Mon Sep 17 00:00:00 2001 From: pbardy2000 <146740183+pbardy2000@users.noreply.github.com> Date: Mon, 5 Aug 2024 10:51:06 +0100 Subject: [PATCH 1/5] feat(cb2-13455): add issue docs centrally for first test and first test prohibition clearance --- src/app/forms/models/testTypeId.enum.ts | 33 +--- .../test-records/create-master.template.ts | 33 +++- .../templates/test-records/master.template.ts | 33 +++- ...section-group9And10CentralDocs.template.ts | 186 ++++++++++++++++++ ...section-group9And10CentralDocs.template.ts | 186 ++++++++++++++++++ 5 files changed, 426 insertions(+), 45 deletions(-) create mode 100644 src/app/forms/templates/test-records/section-templates/test/contingency/contingency-test-section-group9And10CentralDocs.template.ts create mode 100644 src/app/forms/templates/test-records/section-templates/test/test-section-group9And10CentralDocs.template.ts diff --git a/src/app/forms/models/testTypeId.enum.ts b/src/app/forms/models/testTypeId.enum.ts index 54c074738a..8ec7c67754 100644 --- a/src/app/forms/models/testTypeId.enum.ts +++ b/src/app/forms/models/testTypeId.enum.ts @@ -33,33 +33,11 @@ export const TEST_TYPES_GROUP6_11: string[] = ['62', '63', '122', '101', '91']; // ADR tests for HGV and TRL export const TEST_TYPES_GROUP7: string[] = ['59', '60', '50']; -// tests for HGV and TRL - Annual tests, First tests, Annual retests, Paid/Part paid prohibition clearance -export const TEST_TYPES_GROUP9_10: string[] = [ - '76', - '95', - '94', - '53', - '54', - '65', - '66', - '70', - '79', - '82', - '83', - '41', - '40', - '98', - '99', - '103', - '104', - '67', - '107', - '113', - '116', - '119', - '120', - '199', -]; +// tests for HGV and TRL - Annual tests, Annual retests, Paid/Part paid prohibition clearance on annual test +export const TEST_TYPES_GROUP9_10: string[] = ['76', '94', '53', '54', '70', '79', '40', '98', '99', '67', '107', '113', '116', '199']; + +// tests for HGV and TRL - First tests, Paid/Part paid prohibition clearance on first test +export const TEST_TYPES_GROUP9_10_CENTRAL_DOCS = ['95', '41', '65', '103', '66', '104', '82', '119', '83', '120']; // tests for TRL - Paid/Part paid prohibition clearance(retest, full inspection, part inspection, without cert) export const TEST_TYPES_GROUP12_14: string[] = ['117', '108', '109', '110', '114', '71', '72', '73', '77', '80']; @@ -200,6 +178,7 @@ export const TEST_TYPES = { testTypesGroup7: TEST_TYPES_GROUP7, testTypesGroup8Notifiable: TEST_TYPES_GROUP8_NOTIFABLE, testTypesGroup9And10: TEST_TYPES_GROUP9_10, + testTypesGroup9And10CentralDocs: TEST_TYPES_GROUP9_10_CENTRAL_DOCS, testTypesGroup6And11: TEST_TYPES_GROUP6_11, testTypesGroup12And14: TEST_TYPES_GROUP12_14, testTypesGroup5And13: TEST_TYPES_GROUP5_13, diff --git a/src/app/forms/templates/test-records/create-master.template.ts b/src/app/forms/templates/test-records/create-master.template.ts index a450d13c0d..3a0783abb2 100644 --- a/src/app/forms/templates/test-records/create-master.template.ts +++ b/src/app/forms/templates/test-records/create-master.template.ts @@ -30,18 +30,15 @@ import { ContingencyTestSectionGroup6And11 } from './section-templates/test/cont import { ContingencyTestSectionGroup7 } from './section-templates/test/contingency/contingency-test-section-group7.template'; import { ContingencyTestSectionGroup8Notifiable } from './section-templates/test/contingency/contingency-test-section-group8Notifiable.template'; import { ContingencyTestSectionGroup9And10 } from './section-templates/test/contingency/contingency-test-section-group9And10.template'; +import { ContingencyTestSectionGroup9And10CentralDocs } from './section-templates/test/contingency/contingency-test-section-group9And10CentralDocs.template'; import { ContingencyTestSectionSpecialistGroup1 } from './section-templates/test/contingency/contingency-test-section-specialist-group1.template'; import { ContingencyTestSectionSpecialistGroup2 } from './section-templates/test/contingency/contingency-test-section-specialist-group2.template'; -import { - ContingencyTestSectionSpecialistGroup3And4, -} from './section-templates/test/contingency/contingency-test-section-specialist-group3And4.template'; +import { ContingencyTestSectionSpecialistGroup3And4 } from './section-templates/test/contingency/contingency-test-section-specialist-group3And4.template'; import { ContingencyTestSectionSpecialistGroup5 } from './section-templates/test/contingency/contingency-test-section-specialist-group5.template'; import { OldIVAContingencyTestSectionSpecialistGroup1 } from './section-templates/test/contingency/old-contingency-specialist-group1.template'; import { OldIVAContingencyTestSectionSpecialistGroup5 } from './section-templates/test/contingency/old-contingency-specialist-group5.template'; import { DeskBasedTestSectionGroup1Psv } from './section-templates/test/desk-based/desk-based-test-section-group1-PSV.template'; -import { - DeskBasedTestSectionGroup1And4HgvTrl as DeskBasedTestSectionGroup1And4And5HgvTrl, -} from './section-templates/test/desk-based/desk-based-test-section-group1And4-HGV-TRL.template'; +import { DeskBasedTestSectionGroup1And4HgvTrl as DeskBasedTestSectionGroup1And4And5HgvTrl } from './section-templates/test/desk-based/desk-based-test-section-group1And4-HGV-TRL.template'; import { DeskBasedTestSectionGroup2And5 } from './section-templates/test/desk-based/desk-based-test-section-group2.template'; import { DeskBasedTestSectionGroup3 } from './section-templates/test/desk-based/desk-based-test-section-group3.template'; import { DeskBasedTestSectionGroup4Psv } from './section-templates/test/desk-based/desk-based-test-section-group4-PSV.template'; @@ -54,9 +51,7 @@ import { ContingencyVehicleSectionDefaultTrl } from './section-templates/vehicle import { ContingencyIvaMsvaVehicleSection } from './section-templates/vehicle/contingency-iva-msva-vehicle-section.template'; import { DeskBasedVehicleSectionDefaultPsvHgv } from './section-templates/vehicle/desk-based-default-psv-hgv-vehicle-section.template'; import { DeskBasedVehicleSectionDefaultTrl } from './section-templates/vehicle/desk-based-default-trl-vehicle-section.template'; -import { - DeskBasedVehicleSectionHgvGroup1And2And4 as DeskBasedVehicleSectionHgvGroup1And2And4And5, -} from './section-templates/vehicle/desk-based-test-hgv-vehicle-section-group1And2And4.template'; +import { DeskBasedVehicleSectionHgvGroup1And2And4 as DeskBasedVehicleSectionHgvGroup1And2And4And5 } from './section-templates/vehicle/desk-based-test-hgv-vehicle-section-group1And2And4.template'; import { DeskBasedVehicleSectionGroup4LGV } from './section-templates/vehicle/desk-based-vehicle-section-group4-lgv.template'; import { DeskBasedVehicleSectionGroup5Lgv } from './section-templates/vehicle/desk-based-vehicle-section-group5-lgv.template'; import { VehicleSectionGroup3 } from './section-templates/vehicle/group-3-light-vehicle-section.template'; @@ -318,6 +313,16 @@ export const contingencyTestTemplates: Record Date: Mon, 5 Aug 2024 10:56:33 +0100 Subject: [PATCH 2/5] feat(cb2-13455): linting --- ...ontingency-test-section-group9And10CentralDocs.template.ts | 4 +++- .../test/test-section-group9And10CentralDocs.template.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/forms/templates/test-records/section-templates/test/contingency/contingency-test-section-group9And10CentralDocs.template.ts b/src/app/forms/templates/test-records/section-templates/test/contingency/contingency-test-section-group9And10CentralDocs.template.ts index a77e4c471d..1b103ed38a 100644 --- a/src/app/forms/templates/test-records/section-templates/test/contingency/contingency-test-section-group9And10CentralDocs.template.ts +++ b/src/app/forms/templates/test-records/section-templates/test/contingency/contingency-test-section-group9And10CentralDocs.template.ts @@ -1,5 +1,7 @@ import { ValidatorNames } from '@forms/models/validators.enum'; -import { FormNode, FormNodeEditTypes, FormNodeTypes, FormNodeViewTypes, FormNodeWidth } from '@forms/services/dynamic-form.types'; +import { + FormNode, FormNodeEditTypes, FormNodeTypes, FormNodeViewTypes, FormNodeWidth, +} from '@forms/services/dynamic-form.types'; import { SpecialRefData } from '@forms/services/multi-options.service'; export const ContingencyTestSectionGroup9And10CentralDocs: FormNode = { diff --git a/src/app/forms/templates/test-records/section-templates/test/test-section-group9And10CentralDocs.template.ts b/src/app/forms/templates/test-records/section-templates/test/test-section-group9And10CentralDocs.template.ts index edc05d09ff..81cd387b48 100644 --- a/src/app/forms/templates/test-records/section-templates/test/test-section-group9And10CentralDocs.template.ts +++ b/src/app/forms/templates/test-records/section-templates/test/test-section-group9And10CentralDocs.template.ts @@ -1,5 +1,7 @@ import { ValidatorNames } from '@forms/models/validators.enum'; -import { FormNode, FormNodeEditTypes, FormNodeTypes, FormNodeViewTypes, FormNodeWidth } from '@forms/services/dynamic-form.types'; +import { + FormNode, FormNodeEditTypes, FormNodeTypes, FormNodeViewTypes, FormNodeWidth, +} from '@forms/services/dynamic-form.types'; import { SpecialRefData } from '@forms/services/multi-options.service'; export const TestSectionGroup9And10CentralDocs: FormNode = { From 48ba2283dae52692fc5732138bb13d9bb63da26e Mon Sep 17 00:00:00 2001 From: pbardy2000 <146740183+pbardy2000@users.noreply.github.com> Date: Mon, 5 Aug 2024 11:12:26 +0100 Subject: [PATCH 3/5] feat(cb2-13455): fix linting --- .../test-records/create-master.template.ts | 16 ++++++++++++---- .../templates/test-records/master.template.ts | 8 ++++++-- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/app/forms/templates/test-records/create-master.template.ts b/src/app/forms/templates/test-records/create-master.template.ts index 3a0783abb2..15650b22a6 100644 --- a/src/app/forms/templates/test-records/create-master.template.ts +++ b/src/app/forms/templates/test-records/create-master.template.ts @@ -30,15 +30,21 @@ import { ContingencyTestSectionGroup6And11 } from './section-templates/test/cont import { ContingencyTestSectionGroup7 } from './section-templates/test/contingency/contingency-test-section-group7.template'; import { ContingencyTestSectionGroup8Notifiable } from './section-templates/test/contingency/contingency-test-section-group8Notifiable.template'; import { ContingencyTestSectionGroup9And10 } from './section-templates/test/contingency/contingency-test-section-group9And10.template'; -import { ContingencyTestSectionGroup9And10CentralDocs } from './section-templates/test/contingency/contingency-test-section-group9And10CentralDocs.template'; +import { + ContingencyTestSectionGroup9And10CentralDocs, +} from './section-templates/test/contingency/contingency-test-section-group9And10CentralDocs.template'; import { ContingencyTestSectionSpecialistGroup1 } from './section-templates/test/contingency/contingency-test-section-specialist-group1.template'; import { ContingencyTestSectionSpecialistGroup2 } from './section-templates/test/contingency/contingency-test-section-specialist-group2.template'; -import { ContingencyTestSectionSpecialistGroup3And4 } from './section-templates/test/contingency/contingency-test-section-specialist-group3And4.template'; +import { + ContingencyTestSectionSpecialistGroup3And4, +} from './section-templates/test/contingency/contingency-test-section-specialist-group3And4.template'; import { ContingencyTestSectionSpecialistGroup5 } from './section-templates/test/contingency/contingency-test-section-specialist-group5.template'; import { OldIVAContingencyTestSectionSpecialistGroup1 } from './section-templates/test/contingency/old-contingency-specialist-group1.template'; import { OldIVAContingencyTestSectionSpecialistGroup5 } from './section-templates/test/contingency/old-contingency-specialist-group5.template'; import { DeskBasedTestSectionGroup1Psv } from './section-templates/test/desk-based/desk-based-test-section-group1-PSV.template'; -import { DeskBasedTestSectionGroup1And4HgvTrl as DeskBasedTestSectionGroup1And4And5HgvTrl } from './section-templates/test/desk-based/desk-based-test-section-group1And4-HGV-TRL.template'; +import { + DeskBasedTestSectionGroup1And4HgvTrl as DeskBasedTestSectionGroup1And4And5HgvTrl, +} from './section-templates/test/desk-based/desk-based-test-section-group1And4-HGV-TRL.template'; import { DeskBasedTestSectionGroup2And5 } from './section-templates/test/desk-based/desk-based-test-section-group2.template'; import { DeskBasedTestSectionGroup3 } from './section-templates/test/desk-based/desk-based-test-section-group3.template'; import { DeskBasedTestSectionGroup4Psv } from './section-templates/test/desk-based/desk-based-test-section-group4-PSV.template'; @@ -51,7 +57,9 @@ import { ContingencyVehicleSectionDefaultTrl } from './section-templates/vehicle import { ContingencyIvaMsvaVehicleSection } from './section-templates/vehicle/contingency-iva-msva-vehicle-section.template'; import { DeskBasedVehicleSectionDefaultPsvHgv } from './section-templates/vehicle/desk-based-default-psv-hgv-vehicle-section.template'; import { DeskBasedVehicleSectionDefaultTrl } from './section-templates/vehicle/desk-based-default-trl-vehicle-section.template'; -import { DeskBasedVehicleSectionHgvGroup1And2And4 as DeskBasedVehicleSectionHgvGroup1And2And4And5 } from './section-templates/vehicle/desk-based-test-hgv-vehicle-section-group1And2And4.template'; +import { + DeskBasedVehicleSectionHgvGroup1And2And4 as DeskBasedVehicleSectionHgvGroup1And2And4And5, +} from './section-templates/vehicle/desk-based-test-hgv-vehicle-section-group1And2And4.template'; import { DeskBasedVehicleSectionGroup4LGV } from './section-templates/vehicle/desk-based-vehicle-section-group4-lgv.template'; import { DeskBasedVehicleSectionGroup5Lgv } from './section-templates/vehicle/desk-based-vehicle-section-group5-lgv.template'; import { VehicleSectionGroup3 } from './section-templates/vehicle/group-3-light-vehicle-section.template'; diff --git a/src/app/forms/templates/test-records/master.template.ts b/src/app/forms/templates/test-records/master.template.ts index 2fc9cbaf10..b460eb420f 100644 --- a/src/app/forms/templates/test-records/master.template.ts +++ b/src/app/forms/templates/test-records/master.template.ts @@ -10,7 +10,9 @@ import { NotesSection } from './section-templates/notes/notes-section.template'; import { reasonForCreationSection } from './section-templates/reasonForCreation/reasonForCreation.template'; import { CustomDefectsHiddenSection } from './section-templates/required/custom-defects-hidden-section.template'; import { defectsHiddenSection } from './section-templates/required/defect-hidden-section.template'; -import { AmendDeskBasedRequiredHiddenSectionGroup4Motorcyle } from './section-templates/required/desk-based-required-hidden-group4-motorcycle-amend.template'; +import { + AmendDeskBasedRequiredHiddenSectionGroup4Motorcyle, +} from './section-templates/required/desk-based-required-hidden-group4-motorcycle-amend.template'; import { DeskBasedRequiredHiddenSectionGroup5Lgv } from './section-templates/required/desk-based-required-hidden-group5-lgv.template'; import { DeskBasedRequiredSectionHgvTrl } from './section-templates/required/desk-based-required-hidden-section-hgv-trl.template'; import { DeskBasedRequiredSectionPsv } from './section-templates/required/desk-based-required-hidden-section-psv.template'; @@ -52,7 +54,9 @@ import { VehicleSectionDefaultPsvHgvLight } from './section-templates/vehicle/de import { VehicleSectionDefaultTrl } from './section-templates/vehicle/default-trl-vehicle-section.template'; import { DeskBasedVehicleSectionDefaultPsvHgv } from './section-templates/vehicle/desk-based-default-psv-hgv-vehicle-section.template'; import { DeskBasedVehicleSectionDefaultTrl } from './section-templates/vehicle/desk-based-default-trl-vehicle-section.template'; -import { DeskBasedVehicleSectionHgvGroup1And2And4 as DeskBasedVehicleSectionHgvGroup1And2And4And5 } from './section-templates/vehicle/desk-based-test-hgv-vehicle-section-group1And2And4.template'; +import { + DeskBasedVehicleSectionHgvGroup1And2And4 as DeskBasedVehicleSectionHgvGroup1And2And4And5, +} from './section-templates/vehicle/desk-based-test-hgv-vehicle-section-group1And2And4.template'; import { DeskBasedVehicleSectionGroup4LGV } from './section-templates/vehicle/desk-based-vehicle-section-group4-lgv.template'; import { DeskBasedVehicleSectionGroup5Lgv } from './section-templates/vehicle/desk-based-vehicle-section-group5-lgv.template'; import { VisitSection } from './section-templates/visit/visit-section.template'; From 4c4bb49b302ec181ab4637c004f39602ec3dc4f6 Mon Sep 17 00:00:00 2001 From: pbardy2000 <146740183+pbardy2000@users.noreply.github.com> Date: Mon, 5 Aug 2024 13:10:15 +0100 Subject: [PATCH 4/5] feat(cb2-13455): fix template --- ...section-group9And10CentralDocs.template.ts | 148 +++++++----------- 1 file changed, 56 insertions(+), 92 deletions(-) diff --git a/src/app/forms/templates/test-records/section-templates/test/contingency/contingency-test-section-group9And10CentralDocs.template.ts b/src/app/forms/templates/test-records/section-templates/test/contingency/contingency-test-section-group9And10CentralDocs.template.ts index 1b103ed38a..62bf09fb09 100644 --- a/src/app/forms/templates/test-records/section-templates/test/contingency/contingency-test-section-group9And10CentralDocs.template.ts +++ b/src/app/forms/templates/test-records/section-templates/test/contingency/contingency-test-section-group9And10CentralDocs.template.ts @@ -2,7 +2,6 @@ import { ValidatorNames } from '@forms/models/validators.enum'; import { FormNode, FormNodeEditTypes, FormNodeTypes, FormNodeViewTypes, FormNodeWidth, } from '@forms/services/dynamic-form.types'; -import { SpecialRefData } from '@forms/services/multi-options.service'; export const ContingencyTestSectionGroup9And10CentralDocs: FormNode = { name: 'testSection', @@ -10,21 +9,28 @@ export const ContingencyTestSectionGroup9And10CentralDocs: FormNode = { type: FormNodeTypes.GROUP, children: [ { - name: 'createdAt', - label: 'Created', - disabled: true, + name: 'contingencyTestNumber', + label: 'Contingency Test Number', type: FormNodeTypes.CONTROL, - viewType: FormNodeViewTypes.DATE, - editType: FormNodeEditTypes.DATE, + editType: FormNodeEditTypes.NUMERICSTRING, + validators: [{ name: ValidatorNames.MaxLength, args: 8 }, { name: ValidatorNames.MinLength, args: 6 }, { name: ValidatorNames.Required }], + width: FormNodeWidth.L, }, { name: 'testStartTimestamp', - label: 'Test Date', - value: '', - disabled: true, + label: 'Test start date', type: FormNodeTypes.CONTROL, - viewType: FormNodeViewTypes.DATE, - editType: FormNodeEditTypes.DATE, + viewType: FormNodeViewTypes.HIDDEN, + editType: FormNodeEditTypes.HIDDEN, + validators: [{ name: ValidatorNames.PastDate }], + }, + { + name: 'testEndTimestamp', + type: FormNodeTypes.CONTROL, + label: 'Test end date', + viewType: FormNodeViewTypes.HIDDEN, + editType: FormNodeEditTypes.HIDDEN, + validators: [{ name: ValidatorNames.AheadOfDate, args: 'testStartTimestamp' }], }, { name: 'testTypes', @@ -35,25 +41,16 @@ export const ContingencyTestSectionGroup9And10CentralDocs: FormNode = { name: '0', // it is important here that the name of the node for an ARRAY type should be an index value type: FormNodeTypes.GROUP, children: [ - { - name: 'testCode', - label: 'Test Code', - value: '', - disabled: true, - type: FormNodeTypes.CONTROL, - width: FormNodeWidth.XS, - }, { name: 'testResult', label: 'Result', editType: FormNodeEditTypes.HIDDEN, viewType: FormNodeViewTypes.HIDDEN, + value: null, + type: FormNodeTypes.CONTROL, validators: [ - { name: ValidatorNames.HideIfNotEqual, args: { sibling: 'reasonForAbandoning', value: 'abandoned' } }, - { name: ValidatorNames.HideIfNotEqual, args: { sibling: 'additionalCommentsForAbandon', value: 'abandoned' } }, - { name: ValidatorNames.HideIfNotEqual, args: { sibling: 'centralDocs', value: ['pass', 'prs'] } }, + { name: ValidatorNames.HideIfNotEqual, args: { sibling: 'centralDocs', value: 'pass' } }, ], - type: FormNodeTypes.CONTROL, }, { name: 'centralDocs', @@ -81,104 +78,71 @@ export const ContingencyTestSectionGroup9And10CentralDocs: FormNode = { ], }, { - name: 'testTypeName', - label: 'Description', - value: '', - disabled: true, + name: 'reasonForAbandoning', type: FormNodeTypes.CONTROL, + viewType: FormNodeViewTypes.HIDDEN, + editType: FormNodeEditTypes.HIDDEN, + value: null, + required: true, }, { - name: 'certificateNumber', - label: 'Certificate number', - value: '', - disabled: true, + name: 'additionalCommentsForAbandon', type: FormNodeTypes.CONTROL, viewType: FormNodeViewTypes.HIDDEN, editType: FormNodeEditTypes.HIDDEN, + value: null, + required: true, }, { - name: 'testNumber', - label: 'Test Number', + name: 'certificateNumber', + label: 'Certificate number', value: '', - disabled: true, type: FormNodeTypes.CONTROL, + viewType: FormNodeViewTypes.HIDDEN, + editType: FormNodeEditTypes.HIDDEN, }, { name: 'testExpiryDate', label: 'Expiry Date', - value: '', - type: FormNodeTypes.CONTROL, - viewType: FormNodeViewTypes.DATE, - editType: FormNodeEditTypes.DATE, - validators: [ - { - name: ValidatorNames.RequiredIfEquals, - args: { sibling: 'testResult', value: ['pass'] }, - }, - { name: ValidatorNames.AheadOfDate, args: 'testTypeStartTimestamp' }, - ], - }, - { - name: 'testAnniversaryDate', - label: 'Anniversary date', - value: '', - type: FormNodeTypes.CONTROL, - viewType: FormNodeViewTypes.DATE, - editType: FormNodeEditTypes.DATE, - validators: [ - { - name: ValidatorNames.RequiredIfEquals, - args: { sibling: 'testResult', value: ['pass'] }, - }, - { name: ValidatorNames.AheadOfDate, args: 'testTypeStartTimestamp' }, - { name: ValidatorNames.DateNotExceed, args: { sibling: 'testExpiryDate', months: 14 } }, - ], - }, - { - name: 'reasonForAbandoning', + disabled: true, type: FormNodeTypes.CONTROL, - label: 'Reason for abandoning', - editType: FormNodeEditTypes.CHECKBOXGROUP, - delimited: { regex: '\\. (? Date: Tue, 6 Aug 2024 10:35:43 +0100 Subject: [PATCH 5/5] feat(cb2-13455): show issue docs for prs --- ...ontingency-test-section-group9And10CentralDocs.template.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/forms/templates/test-records/section-templates/test/contingency/contingency-test-section-group9And10CentralDocs.template.ts b/src/app/forms/templates/test-records/section-templates/test/contingency/contingency-test-section-group9And10CentralDocs.template.ts index 62bf09fb09..b5f184cc80 100644 --- a/src/app/forms/templates/test-records/section-templates/test/contingency/contingency-test-section-group9And10CentralDocs.template.ts +++ b/src/app/forms/templates/test-records/section-templates/test/contingency/contingency-test-section-group9And10CentralDocs.template.ts @@ -48,9 +48,7 @@ export const ContingencyTestSectionGroup9And10CentralDocs: FormNode = { viewType: FormNodeViewTypes.HIDDEN, value: null, type: FormNodeTypes.CONTROL, - validators: [ - { name: ValidatorNames.HideIfNotEqual, args: { sibling: 'centralDocs', value: 'pass' } }, - ], + validators: [{ name: ValidatorNames.HideIfNotEqual, args: { sibling: 'centralDocs', value: ['pass', 'prs'] } }], }, { name: 'centralDocs',