test(e2e): hydrate run details for environment checks

This commit is contained in:
Dotta committed 2026-08-27 10:18:49 -05:00
1 parent f3c890a89f
commit 3e0e9d67e7
1 file changed
+8
+8
View File
@@ -642,6 +642,14 @@ for (const execution of executions) {
`Expected exactly ${execution.task.expectedRunCount} task heartbeat run(s); observed ${selectedRuns.length}`,
);
}
// The company run-list endpoint intentionally returns only a compact,
// allowlisted context summary. Hydrate each selected run through the
// public detail endpoint before asserting environment/lease metadata.
selectedRuns = await Promise.all(
selectedRuns.map((candidate) =>
api.get<RunRecord>(`/api/heartbeat-runs/${candidate.id}`),
),
);
const run =
selectedRuns.find(
(candidate) => candidate.id === issue!.executionRunId,