forked from Yara724/api
fix(workflows): resolve QA blockers and protect case evidence
Fix registrar signing, reviewer re-entry, replacement evidence freshness, owner decision and rating races, multipart objections, vehicle serialization and product reporting. Validate uploaded media with FFmpeg, serve evidence through expiring signed links, and add targeted regressions plus a dry-run repair for prematurely completed visit cases.
This commit is contained in:
@@ -8,7 +8,7 @@ describe("owner insurer approval without branch selection", () => {
|
||||
const service = Object.create(
|
||||
ClaimRequestManagementService.prototype,
|
||||
) as ClaimRequestManagementService;
|
||||
const findByIdAndUpdate = jest.fn().mockResolvedValue(undefined);
|
||||
const findOneAndUpdate = jest.fn().mockResolvedValue({});
|
||||
|
||||
(service as any).claimCaseDbService = {
|
||||
findById: jest.fn().mockResolvedValue({
|
||||
@@ -21,7 +21,7 @@ describe("owner insurer approval without branch selection", () => {
|
||||
damageExpertReply: { submittedAt: new Date(), parts: [] },
|
||||
},
|
||||
}),
|
||||
findByIdAndUpdate,
|
||||
findOneAndUpdate,
|
||||
};
|
||||
(service as any).resolveClaimEffectiveUserId = jest
|
||||
.fn()
|
||||
@@ -48,8 +48,8 @@ describe("owner insurer approval without branch selection", () => {
|
||||
status: ClaimCaseStatus.REJECTED,
|
||||
});
|
||||
|
||||
expect(findByIdAndUpdate).toHaveBeenCalledWith(
|
||||
"507f1f77bcf86cd799439011",
|
||||
expect(findOneAndUpdate).toHaveBeenCalledWith(
|
||||
expect.objectContaining({_id: "507f1f77bcf86cd799439011", "evaluation.ownerInsurerApproval.signedAt": null}),
|
||||
expect.objectContaining({
|
||||
$set: expect.objectContaining({
|
||||
"evaluation.ownerInsurerApproval": expect.not.objectContaining({
|
||||
|
||||
Reference in New Issue
Block a user