fix(workbench-ui): guard practice panel indexed test access
This commit is contained in:
parent
feacced7b6
commit
62aeba9d62
1 changed files with 3 additions and 3 deletions
|
|
@ -162,7 +162,7 @@ describe("practice evidence panel model", () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const sealed = model.detailSections.find((section) => section.title === "Sealed trace");
|
const sealed = model.detailSections.find((section) => section.title === "Sealed trace");
|
||||||
expect(sealed?.items[0].rows).toEqual(
|
expect(sealed?.items[0]?.rows ?? []).toEqual(
|
||||||
expect.arrayContaining([
|
expect.arrayContaining([
|
||||||
{ key: "geometric_search_run_id", value: "gsr_1" },
|
{ key: "geometric_search_run_id", value: "gsr_1" },
|
||||||
{ key: "replay_refusal_ids", value: "rr_1" },
|
{ key: "replay_refusal_ids", value: "rr_1" },
|
||||||
|
|
@ -181,7 +181,7 @@ describe("practice evidence panel model", () => {
|
||||||
expect(model.chainRows).toEqual([{ key: "trace_refusal", value: "recorded — ptr_1" }]);
|
expect(model.chainRows).toEqual([{ key: "trace_refusal", value: "recorded — ptr_1" }]);
|
||||||
|
|
||||||
const refusal = model.detailSections.find((section) => section.title === "Trace refusal");
|
const refusal = model.detailSections.find((section) => section.title === "Trace refusal");
|
||||||
expect(refusal?.items[0].rows).toEqual(
|
expect(refusal?.items[0]?.rows ?? []).toEqual(
|
||||||
expect.arrayContaining([
|
expect.arrayContaining([
|
||||||
{ key: "trace_refusal_id", value: "ptr_1" },
|
{ key: "trace_refusal_id", value: "ptr_1" },
|
||||||
{ key: "reason_codes", value: "missing_residual" },
|
{ key: "reason_codes", value: "missing_residual" },
|
||||||
|
|
@ -189,4 +189,4 @@ describe("practice evidence panel model", () => {
|
||||||
]),
|
]),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
Loading…
Reference in a new issue