test(app): assert the visible metric rows in the app probe
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user