feat(app): run and stage tabs show an icon above each name
This commit is contained in:
@@ -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 '
|
||||
|
||||
Reference in New Issue
Block a user