feat: update kyc tab, branch day register, and dormancy reports
Tests / testRigor (push) Canceled after 0s
build-run / Run Lint, Build and Deploy (push) Canceled after 0s
Publish Image in Docker Hub / build (push) Canceled after 0s
Playwright E2E Tests / Run Playwright Tests (push) Canceled after 0s

This commit is contained in:
2026-09-10 18:29:33 +05:30
parent f0c06988c0
commit fd5fe6e3b2
16 changed files with 595 additions and 104 deletions
@@ -230,6 +230,23 @@ describe('deriveKycExceptionFields', () => {
const both = `${KYC_EXCEPTION_PAN}, ${KYC_EXCEPTION_AADHAAR}`;
expect(deriveKycExceptionFields(existingException(false, true, both)).exceptionReason).toBe(KYC_EXCEPTION_PAN);
});
it('closes a record left open by a verification that passed after the exception was written', () => {
// A verification writes the exception before calling the vendor, so a check that then passes
// leaves `isException` set with the stale reason still loaded into the form's reason list.
// Saving such a record has to close it, not re-raise it off its own stale reason.
expect(
deriveKycExceptionFields({
...existingException(true, true, KYC_EXCEPTION_PAN),
manualReasons: [KYC_EXCEPTION_PAN]
})
).toEqual({
isException: false,
exceptionReason: KYC_EXCEPTION_PAN,
exceptionResolved: true,
exceptionResolvedOn: TODAY
});
});
});
describe('re-opening', () => {