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!; }, ),