Skip to content

Commit e63b865

Browse files
authored
Feat(authenticator) email otp tests goldens (#5603)
* chore(authenticator): Added Emil MFA to Mock Authenticator * chore(authenticator): Updated goldens images. * chore(authenticator): Added missing const
1 parent a19b523 commit e63b865

File tree

17 files changed

+11
-0
lines changed

17 files changed

+11
-0
lines changed

packages/authenticator/amplify_authenticator_test/lib/src/mock_authenticator_app.dart

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class _MockAuthenticatorAppState extends State<MockAuthenticatorApp> {
7272
allowedMfaTypes: {
7373
MfaType.totp,
7474
MfaType.sms,
75+
MfaType.email,
7576
},
7677
),
7778
);
@@ -87,6 +88,16 @@ class _MockAuthenticatorAppState extends State<MockAuthenticatorApp> {
8788
),
8889
),
8990
);
91+
case AuthenticatorStep.continueSignInWithMfaSetupSelection:
92+
baseBloc.setState(
93+
const ContinueSignInWithMfaSetupSelection(
94+
allowedMfaTypes: {
95+
MfaType.sms,
96+
MfaType.totp,
97+
MfaType.email,
98+
},
99+
),
100+
);
90101
default:
91102
baseBloc.add(const AuthLoad());
92103
break;

0 commit comments

Comments
 (0)