forked from Yara724/api
fix: recover saved photo uploads and lower car-body description minimum
Read saved document status from maps and plain objects, acknowledge verified document retries without replacing stored images, and preserve upload authorization and resend behavior. Lower the car-body narrative minimum to 30 characters with Persian errors and boundary regression coverage.
This commit is contained in:
@@ -68,10 +68,15 @@ describe("RequestManagementService V4 FileMaker workflow", () => {
|
||||
const prefix = party.role === PartyRole.FIRST ? "FIRST" : "SECOND";
|
||||
expect(request.workflow.currentStep).toBe(`${prefix}_DESCRIPTION`);
|
||||
const description = {
|
||||
desc: "شرح حادثه ".repeat(15),
|
||||
desc: type === BlameRequestType.CAR_BODY ? "ش".repeat(30) : "شرح حادثه ".repeat(15),
|
||||
accidentDate: "2025-01-01",
|
||||
accidentTime: "10:30",
|
||||
};
|
||||
if (flow === 4 && type === BlameRequestType.CAR_BODY) {
|
||||
await expect(service.addPartyDescriptionV4(
|
||||
String(request._id), actor, { ...description, desc: "ش".repeat(29) }, party.role,
|
||||
)).rejects.toThrow("شرح حادثه باید حداقل ۳۰ کاراکتر باشد.");
|
||||
}
|
||||
if (flow === 4)
|
||||
await service.addPartyDescriptionV4(
|
||||
String(request._id),
|
||||
|
||||
Reference in New Issue
Block a user