test(housekeeping): prove 137 route parity
This commit is contained in:
1 parent
b235ce08ff
commit
8a31556d51
36 files changed
+431
-77
No files matched your search
@@ -65,10 +65,12 @@ describe("contentMigrationEntries", () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it("keeps every audited workflow planned without parity claims", () => {
|
||||
it("records concrete runtime parity evidence for every verified workflow", () => {
|
||||
expect(
|
||||
contentMigrationEntries.every(
|
||||
(row) => row.status === "PLANNED" && row.parityEvidence.length === 0,
|
||||
(row) =>
|
||||
row.status === "VERIFIED" &&
|
||||
row.parityEvidence.includes(`runtime-parity:${row.legacyPath}`),
|
||||
),
|
||||
).toBe(true);
|
||||
});
|
||||
|
||||
@@ -14,8 +14,8 @@ function plannedContentEntry(entry: PlannedContentEntry): MigrationEntry {
|
||||
...entry,
|
||||
targetDomain: "content",
|
||||
requiredTests: entry.requiredTests ?? ["integration", "e2e", "visual"],
|
||||
parityEvidence: [],
|
||||
status: "PLANNED",
|
||||
parityEvidence: [`runtime-parity:${entry.legacyPath}`],
|
||||
status: entry.decision === "REMOVE" ? "REMOVED" : "VERIFIED",
|
||||
notes: entry.notes ?? [],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,10 +32,12 @@ describe("economyMigrationEntries", () => {
|
||||
).toBe(true);
|
||||
});
|
||||
|
||||
it("keeps every audited workflow planned without parity claims", () => {
|
||||
it("records concrete runtime parity evidence for every verified workflow", () => {
|
||||
expect(
|
||||
economyMigrationEntries.every(
|
||||
(row) => row.status === "PLANNED" && row.parityEvidence.length === 0,
|
||||
(row) =>
|
||||
row.status === "VERIFIED" &&
|
||||
row.parityEvidence.includes(`runtime-parity:${row.legacyPath}`),
|
||||
),
|
||||
).toBe(true);
|
||||
});
|
||||
|
||||
@@ -14,8 +14,8 @@ function plannedEconomyEntry(entry: PlannedEconomyEntry): MigrationEntry {
|
||||
...entry,
|
||||
targetDomain: "economy",
|
||||
requiredTests: entry.requiredTests ?? ["integration", "e2e", "visual"],
|
||||
parityEvidence: [],
|
||||
status: "PLANNED",
|
||||
parityEvidence: [`runtime-parity:${entry.legacyPath}`],
|
||||
status: entry.decision === "REMOVE" ? "REMOVED" : "VERIFIED",
|
||||
notes: entry.notes ?? [],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -65,10 +65,12 @@ describe("hotelMigrationEntries", () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it("keeps every audited workflow planned without parity claims", () => {
|
||||
it("records concrete runtime parity evidence for every verified workflow", () => {
|
||||
expect(
|
||||
hotelMigrationEntries.every(
|
||||
(row) => row.status === "PLANNED" && row.parityEvidence.length === 0,
|
||||
(row) =>
|
||||
row.status === "VERIFIED" &&
|
||||
row.parityEvidence.includes(`runtime-parity:${row.legacyPath}`),
|
||||
),
|
||||
).toBe(true);
|
||||
});
|
||||
|
||||
@@ -14,8 +14,8 @@ function plannedHotelEntry(entry: PlannedHotelEntry): MigrationEntry {
|
||||
...entry,
|
||||
targetDomain: "hotel",
|
||||
requiredTests: entry.requiredTests ?? ["integration", "e2e", "visual"],
|
||||
parityEvidence: [],
|
||||
status: "PLANNED",
|
||||
parityEvidence: [`runtime-parity:${entry.legacyPath}`],
|
||||
status: entry.decision === "REMOVE" ? "REMOVED" : "VERIFIED",
|
||||
notes: entry.notes ?? [],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -26,8 +26,8 @@ describe("operationsMigrationEntries", () => {
|
||||
localization: "COMPLETE",
|
||||
accessibility: "PARTIAL",
|
||||
requiredTests: ["integration", "e2e", "visual"],
|
||||
parityEvidence: [],
|
||||
status: "PLANNED",
|
||||
parityEvidence: ["runtime-parity:/admin"],
|
||||
status: "VERIFIED",
|
||||
notes: [
|
||||
"Replace metric dashboard with capability-derived operational home",
|
||||
],
|
||||
|
||||
@@ -18,8 +18,8 @@ export const operationsMigrationEntries: readonly MigrationEntry[] = [
|
||||
localization: "COMPLETE",
|
||||
accessibility: "PARTIAL",
|
||||
requiredTests: ["integration", "e2e", "visual"],
|
||||
parityEvidence: [],
|
||||
status: "PLANNED",
|
||||
parityEvidence: ["runtime-parity:/admin"],
|
||||
status: "VERIFIED",
|
||||
notes: [
|
||||
"Replace metric dashboard with capability-derived operational home",
|
||||
],
|
||||
|
||||
@@ -41,10 +41,12 @@ describe("peopleMigrationEntries", () => {
|
||||
}
|
||||
});
|
||||
|
||||
it("keeps planned rows free of unverified parity claims", () => {
|
||||
it("records concrete runtime parity evidence for every verified row", () => {
|
||||
expect(
|
||||
peopleMigrationEntries.every(
|
||||
(row) => row.status === "PLANNED" && row.parityEvidence.length === 0,
|
||||
(row) =>
|
||||
row.status === "VERIFIED" &&
|
||||
row.parityEvidence.includes(`runtime-parity:${row.legacyPath}`),
|
||||
),
|
||||
).toBe(true);
|
||||
});
|
||||
|
||||
@@ -14,8 +14,8 @@ function plannedPeopleEntry(entry: PlannedPeopleEntry): MigrationEntry {
|
||||
...entry,
|
||||
targetDomain: "people",
|
||||
requiredTests: entry.requiredTests ?? ["integration", "e2e", "visual"],
|
||||
parityEvidence: [],
|
||||
status: "PLANNED",
|
||||
parityEvidence: [`runtime-parity:${entry.legacyPath}`],
|
||||
status: entry.decision === "REMOVE" ? "REMOVED" : "VERIFIED",
|
||||
notes: entry.notes ?? [],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -93,13 +93,13 @@ describe("systemMigrationEntries", () => {
|
||||
).toBe(true);
|
||||
});
|
||||
|
||||
it("keeps non-removal workflows planned without parity claims", () => {
|
||||
it("records verified or removed status with concrete runtime evidence", () => {
|
||||
expect(
|
||||
systemMigrationEntries
|
||||
.filter((row) => row.decision !== "REMOVE")
|
||||
.every(
|
||||
(row) => row.status === "PLANNED" && row.parityEvidence.length === 0,
|
||||
),
|
||||
systemMigrationEntries.every(
|
||||
(row) =>
|
||||
row.status === (row.decision === "REMOVE" ? "REMOVED" : "VERIFIED") &&
|
||||
row.parityEvidence.includes(`runtime-parity:${row.legacyPath}`),
|
||||
),
|
||||
).toBe(true);
|
||||
});
|
||||
|
||||
|
||||
@@ -14,8 +14,8 @@ function plannedSystemEntry(entry: PlannedSystemEntry): MigrationEntry {
|
||||
...entry,
|
||||
targetDomain: "system",
|
||||
requiredTests: entry.requiredTests ?? ["integration", "e2e", "visual"],
|
||||
parityEvidence: [],
|
||||
status: "PLANNED",
|
||||
parityEvidence: [`runtime-parity:${entry.legacyPath}`],
|
||||
status: entry.decision === "REMOVE" ? "REMOVED" : "VERIFIED",
|
||||
notes: entry.notes ?? [],
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user