Connect sign-up to Sendico Facts intake (#46)

This commit is contained in:
Stephan D committed 2026-10-15 00:55:19 +02:00
1 parent 30f0455122
commit a584c8189a
40 files changed
+1616 -35

No files matched your search

+31
View File
@@ -42,6 +42,37 @@ Future<void> openVerification(
}
void main() {
testWidgets('resend assistance retains email and does not claim delivery', (
tester,
) async {
await openVerification(
tester,
'/verification-sent',
service: const DummyVerificationService(
delay: Duration.zero,
sendFailure: VerificationError.needsAssistance,
),
);
final email = find.byKey(const ValueKey('verification-email'));
await tester.enterText(email, 'ada@example.com');
await tester.ensureVisible(
find.byKey(const ValueKey('verification-resend')),
);
await tester.tap(find.byKey(const ValueKey('verification-resend')));
await tester.pumpAndSettle();
expect(
find.text(
'We could not finish setting up your account. Please contact support.',
),
findsOneWidget,
);
expect(find.byKey(const ValueKey('verification-sent')), findsNothing);
expect(
tester.widget<TextFormField>(email).controller!.text,
'ada@example.com',
);
expect(tester.takeException(), isNull);
});
for (final scenario in {
'demo-valid': 'verified',
'demo-expired': 'expired',