From 07f6446c2492cdf0d27c1c4fd1db9d4a679c8e59 Mon Sep 17 00:00:00 2001 From: Alan Silva Date: Thu, 22 Oct 2026 03:20:36 +0100 Subject: [PATCH] test(app): assert the visible metric rows in the app probe --- app/tool/runs_probe.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/tool/runs_probe.mjs b/app/tool/runs_probe.mjs index 1df913ba..486c5558 100644 --- a/app/tool/runs_probe.mjs +++ b/app/tool/runs_probe.mjs @@ -332,7 +332,10 @@ try { await delay(300); const metricsCapture = await capture('i1-runs-phone-detail-metrics'); captures.push(metricsCapture); - await assertOcr(metricsCapture, 'Total tokens'); + // The expanded metrics tile scrolls; the first recorded rows can be above the + // capture, so the probe asserts the rows this viewport shows. The full label + // set is covered by the Summary widget tests. + await assertOcr(metricsCapture, 'Output tokens'); await assertOcr(metricsCapture, 'Reported cost'); // Browser Back/Forward move between the in-app routes, not out of the app.