From 3e0e9d67e775548c80fd85297e13af77a2a3e6da Mon Sep 17 00:00:00 2001 From: Dotta Date: Thu, 27 Aug 2026 10:18:49 -0500 Subject: [PATCH] test(e2e): hydrate run details for environment checks --- tests/runner-e2e/runner.spec.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/runner-e2e/runner.spec.ts b/tests/runner-e2e/runner.spec.ts index de7fae4bb72..cc18180178e 100644 --- a/tests/runner-e2e/runner.spec.ts +++ b/tests/runner-e2e/runner.spec.ts @@ -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(`/api/heartbeat-runs/${candidate.id}`), + ), + ); const run = selectedRuns.find( (candidate) => candidate.id === issue!.executionRunId,