production

This commit is contained in:
2026-08-28 11:13:15 +05:30
parent d7348e253f
commit 5723d373b2
162 changed files with 17924 additions and 7026 deletions

View File

@@ -83,7 +83,7 @@ void main() {
group('a rider who logs in on a meal tenant', () {
setUp(() => ServiceProfile.setActive(ServiceProfile.meals));
testWidgets('starts at a kitchen, and never comes back to a hub', (
testWidgets('starts at a kitchen, and never comes back to base', (
tester,
) async {
await pumpRoute(
@@ -104,8 +104,8 @@ void main() {
// His day ends at the last subscriber's door. A return leg to a warehouse
// he has never seen is an un-completable step at the end of a route he
// has in fact finished.
expect(find.text('RETURN · HUB'), findsNothing);
expect(find.text('START · HUB'), findsNothing);
expect(find.text('RETURN · BASE'), findsNothing);
expect(find.text('START · BASE'), findsNothing);
});
testWidgets('sees his route grouped under the kitchen it comes from', (
@@ -172,7 +172,7 @@ void main() {
group('a rider who logs in without a meal tenant', () {
setUp(() => ServiceProfile.setActive(ServiceProfile.parcel));
testWidgets('gets the hub-to-hub route he has always had', (tester) async {
testWidgets('gets the base-to-base route he has always had', (tester) async {
await pumpRoute(
tester,
stops: [
@@ -185,7 +185,7 @@ void main() {
// customer doors and comes back. The head is shared with the meal run;
// the closing leg is what tells the two apart.
expect(find.text('TODAY’S RUN'), findsOneWidget);
expect(find.text('RETURN · HUB'), findsOneWidget);
expect(find.text('RETURN · BASE'), findsOneWidget);
expect(find.text('START · KITCHEN'), findsNothing);
});
@@ -324,7 +324,7 @@ void main() {
testWidgets('a parcel day is a loop, and says so', (tester) async {
ServiceProfile.setActive(ServiceProfile.parcel);
final line = await subtitle(tester);
expect(line, contains('then hub'));
expect(line, contains('then base'));
});
});
}