feat(app): run and stage tabs show an icon above each name

This commit is contained in:
2026-10-23 18:32:04 +01:00
parent 25b9118ee9
commit e109741ef8
4 changed files with 78 additions and 18 deletions
@@ -21,6 +21,22 @@ void main() {
expect(find.text('Back'), findsNothing);
// The page bar's own Back is the only one.
expect(find.byKey(const Key('run-visit-back')), findsOneWidget);
// Every tab shows its glyph above its name.
for (final section in RunVisitSection.values) {
final tab = find.byKey(ValueKey('run-visit-tab-${section.name}'));
expect(
find.descendant(
of: tab,
matching: find.byIcon(
platform == RunDetailTestPlatform.cupertino
? section.cupertinoIcon
: section.icon,
),
),
findsOneWidget,
reason: section.name,
);
}
});
testWidgets('${platform.name} tabs show recorded values and exact empty '