mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-26 10:26:26 +01:00
test(e2e): hydrate run details for environment checks
This commit is contained in:
1 parent
f3c890a89f
commit
3e0e9d67e7
1 file changed
+8
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user