Skip to content

Commit d9d12e3

Browse files
committed
fix(authenticator): fixes configure call in custom auth test and removes redundant test (#1878)
1 parent 513fb5b commit d9d12e3

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

packages/auth/amplify_auth_cognito/example/integration_test/custom_auth_passwordless_test.dart

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,7 @@ void main() {
3636
});
3737

3838
setUpAll(() async {
39-
await configureAuth(
40-
customAuth: true,
41-
additionalPlugins: [
42-
AmplifyAPI(),
43-
],
44-
);
39+
await configureAuth();
4540
// create new user for each test
4641
username = generateUsername();
4742
password = generatePassword();
@@ -54,30 +49,6 @@ void main() {
5449
);
5550
});
5651

57-
testWidgets(
58-
'Unconfirmed user sign in throws UserNotConfirmedException (even when password not verified)',
59-
(WidgetTester tester) async {
60-
var unconfirmedUsername = '${generateUsername()}unconfirmedUSer';
61-
await Amplify.Auth.signUp(
62-
username: unconfirmedUsername,
63-
password: password,
64-
options: CognitoSignUpOptions(
65-
userAttributes: {
66-
CognitoUserAttributeKey.email: '[email protected]',
67-
CognitoUserAttributeKey.phoneNumber: '+15555555555',
68-
},
69-
),
70-
);
71-
72-
expect(
73-
Amplify.Auth.signIn(username: unconfirmedUsername, password: null),
74-
throwsA(
75-
isA<UserNotConfirmedException>(),
76-
),
77-
);
78-
},
79-
);
80-
8152
testWidgets(
8253
'signIn should return data from the auth challenge lambda',
8354
(WidgetTester tester) async {

0 commit comments

Comments
 (0)