production
This commit is contained in:
@@ -78,14 +78,14 @@ void main() {
|
||||
await pump(tester, route(4, 2, 11)); // 18 stops, current is #5
|
||||
expect(find.text('4 of 18 done'), findsOneWidget);
|
||||
expect(
|
||||
find.text('On stop 5 of 18 · 2 skipped · 2h 10m left, then hub'),
|
||||
find.text('On stop 5 of 18 · 2 skipped · 2h 10m left, then base'),
|
||||
findsOneWidget,
|
||||
);
|
||||
});
|
||||
|
||||
testWidgets('drops the skip clause when nothing was skipped', (tester) async {
|
||||
await pump(tester, route(3, 0, 5));
|
||||
expect(find.text('On stop 4 of 9 · 2h 10m left, then hub'), findsOneWidget);
|
||||
expect(find.text('On stop 4 of 9 · 2h 10m left, then base'), findsOneWidget);
|
||||
});
|
||||
|
||||
// The card, its border, its shadow and its padding are gone — the rail sits
|
||||
@@ -153,10 +153,10 @@ void main() {
|
||||
expect(find.byIcon(LucideIcons.warehouse), findsNothing);
|
||||
});
|
||||
|
||||
testWidgets('a finished route says head back to the hub', (tester) async {
|
||||
testWidgets('a finished route says head back to base', (tester) async {
|
||||
await pump(tester, route(6, 0, 0, current: false));
|
||||
expect(find.text('All stops done'), findsOneWidget);
|
||||
expect(find.text('Head back to the hub'), findsOneWidget);
|
||||
expect(find.text('Head back to base'), findsOneWidget);
|
||||
});
|
||||
|
||||
// The rail numbers the stops the same way the list below it does, and the
|
||||
|
||||
Reference in New Issue
Block a user