diff --git a/test/features/order_info/cubit/order_info_cubit_test.dart b/test/features/order_info/cubit/order_info_cubit_test.dart index b1925972..f62ff961 100644 --- a/test/features/order_info/cubit/order_info_cubit_test.dart +++ b/test/features/order_info/cubit/order_info_cubit_test.dart @@ -200,13 +200,13 @@ void main() { .thenAnswer((_) async => chosenPlan); await cubit.getChosenPlan(id: 1); - when(mockChatRepository.getPaymentLink(id: 1, paymentProvider: 'mock')) + when(mockChatRepository.getPaymentLink(id: 1, paymentProvider: 'alfa-bank')) .thenAnswer((_) async => paymentModel); final result = await cubit.getPaymentLink(); expect(result, equals('https://payment.url')); - verify(mockChatRepository.getPaymentLink(id: 1, paymentProvider: 'mock')).called(1); + verify(mockChatRepository.getPaymentLink(id: 1, paymentProvider: 'alfa-bank')).called(1); }); test('getPaymentLink - возвращает null, если план не выбран', () async { @@ -254,7 +254,7 @@ void main() { .thenAnswer((_) async => chosenPlan); await cubit.getChosenPlan(id: 1); - when(mockChatRepository.getPaymentLink(id: 1, paymentProvider: 'mock')) + when(mockChatRepository.getPaymentLink(id: 1, paymentProvider: 'alfa-bank')) .thenThrow(Exception('Ошибка')); final result = await cubit.getPaymentLink(); diff --git a/test/features/payment/consultation_payment_flow_test.dart b/test/features/payment/consultation_payment_flow_test.dart index 667c84ed..f0544e6d 100644 --- a/test/features/payment/consultation_payment_flow_test.dart +++ b/test/features/payment/consultation_payment_flow_test.dart @@ -76,7 +76,7 @@ void main() { testWidgets('Да → форма → Пропустить → вызывает SbpBanks', (tester) async { gateResult = true; - formResult = PromoCodeResult(); + formResult = const PromoCodeResult(); await tester.pumpWidget(createTestApp()); await showConsultationPaymentFlow( diff --git a/test/features/payment/presentation/widgets/promo_code_modal_test.dart b/test/features/payment/presentation/widgets/promo_code_modal_test.dart index df2721e7..e1b2e923 100644 --- a/test/features/payment/presentation/widgets/promo_code_modal_test.dart +++ b/test/features/payment/presentation/widgets/promo_code_modal_test.dart @@ -60,7 +60,7 @@ void main() { await tester.pumpWidget( createTestWidget( onValidate: (code) async { - captured ??= PromoValidation.failure('Промокод не найден или истёк'); + captured ??= const PromoValidation.failure('Промокод не найден или истёк'); return captured!; }, ),