From 228ba12a3962faf6f05ade22f11bef35c06c4f5b Mon Sep 17 00:00:00 2001 From: Alan Silva Date: Fri, 23 Oct 2026 12:50:42 +0100 Subject: [PATCH] test(app): run tab alignment asserts the label position --- app/test/features/runs/ui/run_detail_tabs_test.dart | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/test/features/runs/ui/run_detail_tabs_test.dart b/app/test/features/runs/ui/run_detail_tabs_test.dart index 92eb7fa3..92563375 100644 --- a/app/test/features/runs/ui/run_detail_tabs_test.dart +++ b/app/test/features/runs/ui/run_detail_tabs_test.dart @@ -37,11 +37,10 @@ void main() { previous = center.dx; } expect(find.byKey(runTitleActionKey), findsOneWidget); - // The strip lines up with the header's 16px inset on both hosts. - expect( - tester.getTopLeft(find.byKey(const Key('run-detail-tabs'))).dx, - 16, - ); + // The strip lines up with the header's 16px inset on both hosts: the + // first label sits within its segment's own padding of that inset, not + // behind a second 16px control inset (which put it at 48 on Cupertino). + expect(tester.getTopLeft(find.text('Summary')).dx, lessThan(40)); for (final tab in [ RunDetailTab.graph,