polish compact pipeline and run lists
This commit is contained in:
@@ -104,4 +104,30 @@ void main() {
|
||||
expect(find.byKey(const ValueKey('run-list-more-menu-42')), findsOneWidget);
|
||||
expect(find.byKey(runMoreMenuKey), findsNothing);
|
||||
});
|
||||
|
||||
testWidgets('compact rows keep a title and one metadata line', (
|
||||
tester,
|
||||
) async {
|
||||
tester.view.physicalSize = const Size(240, 400);
|
||||
tester.view.devicePixelRatio = 1;
|
||||
addTearDown(tester.view.reset);
|
||||
await tester.pumpWidget(
|
||||
MaterialApp(
|
||||
home: Scaffold(
|
||||
body: RunListRow(
|
||||
run: _finished,
|
||||
now: DateTime.utc(2026, 10, 22),
|
||||
gateway: _FakeGateway(),
|
||||
onRunChanged: (_) {},
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
expect(find.text('Ship the release notes'), findsOneWidget);
|
||||
expect(find.text('release'), findsOneWidget);
|
||||
expect(find.text('2m 5s'), findsNothing);
|
||||
expect(find.byKey(const ValueKey('run-list-more-menu-42')), findsNothing);
|
||||
expect(tester.takeException(), isNull);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user