From 4445a8796602c603e1cc2bceb2ad40e9326965c1 Mon Sep 17 00:00:00 2001 From: Verification Agent Date: Tue, 23 Jun 2026 08:55:05 +0100 Subject: [PATCH] ALFMOB-424: Use a valid phone number in checkout integration tests The 3 failing checkout integration tests all stalled at the contact information screen: its Continue button is gated on UserData.isValid(), which calls FormUtils.validatePhoneNumber -> PhoneNumber.parse().isValid (phonenumbers_core, added in ALFMOB-326). The fixture '+1234567890' is not a valid number (only 9 digits after +1), so the button never enabled: - 'Submit button disabled when form is invalid' asserted the button becomes enabled once all fields are filled (got false). - 'User can proceed through checkout successfully' tapped a disabled Continue, never reached the Delivery Information screen. - 'UI state updates correctly during checkout' did the same, then threw StateError filling delivery fields that were never rendered. Replace the fixture with '+44 7700 900000', the same valid number the form_utils unit test uses. App validation behaviour is unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../integration_test/checkout_integration_test.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/alfie_flutter/integration_test/checkout_integration_test.dart b/alfie_flutter/integration_test/checkout_integration_test.dart index 3e14878..ddf6866 100644 --- a/alfie_flutter/integration_test/checkout_integration_test.dart +++ b/alfie_flutter/integration_test/checkout_integration_test.dart @@ -106,7 +106,7 @@ void main() { ); await tester.enterText( find.byKey(const Key('contact_phone_field')), - '+1234567890', + '+44 7700 900000', ); FocusManager.instance.primaryFocus?.unfocus(); @@ -232,7 +232,7 @@ void main() { firstName: 'John', lastName: 'Doe', email: 'john@example.com', - phoneNumber: '+1234567890', + phoneNumber: '+44 7700 900000', ), ); checkoutVM.setDeliveryAddress( @@ -324,7 +324,7 @@ void main() { firstName: 'John', lastName: 'Doe', email: 'john@example.com', - phoneNumber: '+1234567890', + phoneNumber: '+44 7700 900000', ), ); checkoutVM.setDeliveryAddress( @@ -412,7 +412,7 @@ void main() { ); await tester.enterText( find.byKey(const Key('contact_phone_field')), - '+1234567890', + '+44 7700 900000', ); await tester.pumpAndSettle(); @@ -471,7 +471,7 @@ void main() { ); await tester.enterText( find.byKey(const Key('contact_phone_field')), - '+1234567890', + '+44 7700 900000', ); await tester.pumpAndSettle(); await tester.tap(find.widgetWithText(ElevatedButton, 'Continue').first);