miler map
This commit is contained in:
@@ -175,4 +175,30 @@ void main() {
|
||||
await tester.tap(find.text('Trip 2'));
|
||||
expect(chosen, 1);
|
||||
});
|
||||
|
||||
// ── What the panel holds when a slot is empty ──
|
||||
//
|
||||
// Nothing, as far as this control is concerned. [TripSelector] draws the tab
|
||||
// strip and whatever body it is handed; Home hands it the selected trip's
|
||||
// brief, and for a slot the hub has not filled that is the *same* brief built
|
||||
// from an empty trip — `0 stops left` and an em dash under every figure. See
|
||||
// `trip_unassigned_brief_test.dart`.
|
||||
//
|
||||
// So there is no "empty" state in here to test, and nothing in this control
|
||||
// says `Not assigned yet` any more: that line made the panel a stub under a
|
||||
// tab twice its height, and repeated a sentence the empty state below already
|
||||
// carried.
|
||||
group('with no body', () {
|
||||
testWidgets('the control is just the tab strip', (tester) async {
|
||||
await pump(tester, trips: 1, selected: 2);
|
||||
|
||||
expect(find.text('Not assigned yet'), findsNothing);
|
||||
expect(
|
||||
tester.getSize(find.byType(TripSelector)).height,
|
||||
TripSelector.height,
|
||||
);
|
||||
expect(tester.takeException(), isNull);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user