fix(housekeeping): harden system workflow boundaries
This commit is contained in:
@@ -21,6 +21,26 @@ const requiredKeys = [
|
||||
"pages.housekeeping.states.error.description",
|
||||
];
|
||||
|
||||
const systemRouteMessageKeys = [
|
||||
"pages.housekeeping.routes.system.access.permissions",
|
||||
"pages.housekeeping.routes.system.access.permission-detail",
|
||||
"pages.housekeeping.routes.system.configuration.settings",
|
||||
"pages.housekeeping.routes.system.configuration.emulator",
|
||||
"pages.housekeeping.routes.system.observability.analytics",
|
||||
"pages.housekeeping.routes.system.observability.analytics-activity",
|
||||
"pages.housekeeping.routes.system.observability.analytics-economy",
|
||||
"pages.housekeeping.routes.system.observability.devops",
|
||||
"pages.housekeeping.routes.system.observability.devops-errors",
|
||||
"pages.housekeeping.routes.system.observability.logs-staff",
|
||||
"pages.housekeeping.routes.system.observability.logs-audit",
|
||||
"pages.housekeeping.routes.system.observability.logs-chat",
|
||||
"pages.housekeeping.routes.system.observability.logs-commands",
|
||||
"pages.housekeeping.routes.system.observability.logs-trades",
|
||||
"pages.housekeeping.routes.system.operations.alerts",
|
||||
"pages.housekeeping.routes.system.operations.command-center",
|
||||
"pages.housekeeping.routes.system.operations.maintenance",
|
||||
] as const;
|
||||
|
||||
const expectedDomainMessages = [
|
||||
{
|
||||
id: "operations",
|
||||
@@ -74,6 +94,7 @@ describe("housekeeping localization contract", () => {
|
||||
"preview",
|
||||
"navigation",
|
||||
"domains",
|
||||
"routes",
|
||||
"states",
|
||||
]);
|
||||
|
||||
@@ -81,6 +102,12 @@ describe("housekeeping localization contract", () => {
|
||||
expect(resolveMessage(messages, key), key).toEqual(expect.any(String));
|
||||
}
|
||||
|
||||
for (const key of systemRouteMessageKeys) {
|
||||
const message = resolveMessage(messages, key);
|
||||
expect(message, key).toEqual(expect.any(String));
|
||||
expect((message as string).trim(), key).not.toBe("");
|
||||
}
|
||||
|
||||
for (const [index, expected] of expectedDomainMessages.entries()) {
|
||||
const manifest = HOUSEKEEPING_MANIFESTS[index];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user