File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
packages/authenticator/amplify_authenticator_test/lib/src/pages Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,11 @@ class ConfirmSignInPage extends AuthenticatorPage {
172
172
173
173
final mfaMethodWidget = find.descendant (
174
174
of: selectMfaSetupRadio,
175
- matching: find.textContaining ('(${mfaMethod .name .toUpperCase ()})' ),
175
+ matching: find.textContaining (
176
+ mfaMethod == MfaType .email
177
+ ? 'Email'
178
+ : '(${mfaMethod .name .toUpperCase ()})' ,
179
+ ),
176
180
);
177
181
178
182
await tester.tap (mfaMethodWidget);
@@ -186,6 +190,13 @@ class ConfirmSignInPage extends AuthenticatorPage {
186
190
await tester.pumpAndSettle ();
187
191
}
188
192
193
+ /// When I click the continue sign in with MFA setup selection button
194
+ Future <void > submitConfirmSignInMfaSetupSelection () async {
195
+ await tester.ensureVisible (confirmSignInMfaSetupSelectionButton);
196
+ await tester.tap (confirmSignInMfaSetupSelectionButton);
197
+ await tester.pumpAndSettle ();
198
+ }
199
+
189
200
/// When I navigate to the "Sign In" step.
190
201
Future <void > navigateToSignIn () async {
191
202
await tester.tap (backToSignIn);
You can’t perform that action at this time.
0 commit comments