forked from Yara724/api
Add tenant-scoped insurer, staff and branch management APIs
Support all six staff roles and editable Fanavaran codes, insurer login accounts and optional branch details. Enforce tenant boundaries and role-specific fields, document setup and extend regression coverage.
This commit is contained in:
@@ -170,12 +170,15 @@ describe("Expert Fanavaran stage fields", () => {
|
||||
AccidentCityId: 702,
|
||||
AccidentReportTypeId: 156,
|
||||
});
|
||||
if (clientKey === "tejaratno")
|
||||
expect(payload).toMatchObject({
|
||||
if (clientKey === "tejaratno") {
|
||||
// Hull claims use root fields; third-party claims notify through DmgNotifications.
|
||||
const notification =
|
||||
product === "car-body" ? payload : payload.DmgNotifications?.[0];
|
||||
expect(notification).toMatchObject({
|
||||
NotifierTypeId: 5517,
|
||||
NotifierRelationId: 5523,
|
||||
});
|
||||
else {
|
||||
} else {
|
||||
expect(payload).not.toHaveProperty("NotifierTypeId");
|
||||
expect(payload).not.toHaveProperty("NotifierRelationId");
|
||||
}
|
||||
@@ -189,6 +192,8 @@ describe("Expert Fanavaran stage fields", () => {
|
||||
});
|
||||
expect(payload.DamagedCount).toBeUndefined();
|
||||
expect(payload.IsLicenseReplacement).toBeUndefined();
|
||||
} else if (clientKey === "tejaratno") {
|
||||
expect(payload).not.toHaveProperty("AuthorityCulpritId");
|
||||
} else expect(payload.AuthorityCulpritId).toBeNull();
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user