forked from Yara724/api
fix: support manual accident addresses and expose final Fanavaran completion
Accept and persist address-only locations across user and expert flows, preserve workflow authorization, and include addresses in reports and Fanavaran review. Expose persisted final submission completion so the expert panel can prevent repeat sends.
This commit is contained in:
@@ -223,7 +223,9 @@ describe("V6 call-center workflow", () => {
|
||||
expect(req.workflow.nextStep).toBe(Step.FIRST_LOCATION);
|
||||
await service.uploadFirstPartyVideoV2(id, media, first);
|
||||
expect(req.workflow.currentStep).toBe(Step.FIRST_LOCATION);
|
||||
await service.addDetailLocationV2(id, { lat: 35, lng: 51 } as any, first);
|
||||
const location = mode === "vin" ? { address: "تهران، خیابان آزادی، محل حادثه" } : { lat: 35, lon: 51 };
|
||||
await service.addDetailLocationV2(id, location, first);
|
||||
expect(req.parties[0].location).toEqual(location);
|
||||
expect(req.workflow.currentStep).toBe(Step.FIRST_VOICE);
|
||||
await service.uploadVoiceV2(id, media, first);
|
||||
expect(req.workflow.currentStep).toBe(Step.FIRST_DESCRIPTION);
|
||||
@@ -258,7 +260,7 @@ describe("V6 call-center workflow", () => {
|
||||
req.workflow.nextStep = Step.SECOND_VOICE;
|
||||
await service.addDetailLocationV2(
|
||||
id,
|
||||
{ lat: 35, lng: 51 } as any,
|
||||
{ address: "نشانی اعلامشده توسط طرف دوم حادثه" },
|
||||
second,
|
||||
);
|
||||
await service.uploadVoiceV2(id, media, second);
|
||||
|
||||
Reference in New Issue
Block a user