apps/driver كان يشير إلى `../../Intaleq/packages/get` خارج المستودع — وهو مسار يُحل من apps/driver إلى Tripz/Intaleq/ غير الموجود، فلا يمرّ `flutter pub get` إطلاقاً. (فجوة docs/30 §2.6.) ضُمّت نسخة **انطلق** تحديداً (App/Intaleq/packages) لا فرع apps/rider: الفرعان يختلفان فعلاً — snackbar_controller.dart و get_queue.dart وغيرهما مختلفة بين النسختين، فاستعارة فرع rider كانت ستغيّر سلوك السائق صامتة. apps/driver/packages/get (3.5 م.ب، 202 ملف dart مع get_storage) apps/driver/packages/get_storage pubspec: ../../Intaleq/packages/* → ./packages/* (3 مواضع، منها dependency_overrides سطر 142) المستودع صار مكتفياً ذاتياً: لا تبعية مسار خارج شجرته. لم يُمسّ App/Intaleq. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
36 lines
952 B
Dart
36 lines
952 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:get/get.dart';
|
|
|
|
import '../navigation/utils/wrapper.dart';
|
|
|
|
void main() {
|
|
testWidgets("Get.defaultDialog smoke test", (tester) async {
|
|
await tester.pumpWidget(
|
|
Wrapper(child: Container()),
|
|
);
|
|
|
|
await tester.pumpAndSettle();
|
|
|
|
expect('covid'.tr, 'Corona Virus');
|
|
expect('total_confirmed'.tr, 'Total Confirmed');
|
|
expect('total_deaths'.tr, 'Total Deaths');
|
|
|
|
Get.updateLocale(const Locale('pt', 'BR'));
|
|
|
|
await tester.pumpAndSettle();
|
|
|
|
expect('covid'.tr, 'Corona Vírus');
|
|
expect('total_confirmed'.tr, 'Total confirmado');
|
|
expect('total_deaths'.tr, 'Total de mortes');
|
|
|
|
Get.updateLocale(const Locale('en', 'EN'));
|
|
|
|
await tester.pumpAndSettle();
|
|
|
|
expect('covid'.tr, 'Corona Virus');
|
|
expect('total_confirmed'.tr, 'Total Confirmed');
|
|
expect('total_deaths'.tr, 'Total Deaths');
|
|
});
|
|
}
|