From fc9c5d23b23b99ea4a289989718f9a0d0f028f9b Mon Sep 17 00:00:00 2001 From: Alan Silva Date: Fri, 23 Oct 2026 01:14:48 +0100 Subject: [PATCH] test(app): remove obsolete run metrics probe --- app/tool/runs_probe.mjs | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/app/tool/runs_probe.mjs b/app/tool/runs_probe.mjs index 37a9badb..f4e4a99a 100644 --- a/app/tool/runs_probe.mjs +++ b/app/tool/runs_probe.mjs @@ -195,15 +195,6 @@ try { deltaY, }, session); - const scrollUntil = async (text) => { - for (let attempt = 0; attempt < 20; attempt++) { - if ((await semanticText()).includes(text)) return; - await wheel(400); - await delay(180); - } - throw new Error(`Could not scroll to ${JSON.stringify(text)}`); - }; - const setSize = async (width, height) => { await send('Emulation.setDeviceMetricsOverride', { width, @@ -325,19 +316,6 @@ try { captures.push(outputCapture); await assertOcr(outputCapture, 'answer'); - await clickText('Summary'); - await scrollUntil('Metrics'); - await clickText('Metrics'); - await wheel(300); - await delay(300); - const metricsCapture = await capture('i1-runs-phone-detail-metrics'); - captures.push(metricsCapture); - // 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. const path = () => evaluate('location.pathname'); await evaluate('history.back()');