File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
packages/authenticator/amplify_authenticator/example/integration_test Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ void main() {
14
14
testRunner.setupTests ();
15
15
16
16
group ('sign-in-sms-totp-mfa' , () {
17
- testRunner.withEnvironment (MfaEnvironment . mfaRequiredSmsTotp, () {
17
+ testRunner.withEnvironment (mfaRequiredSmsTotp, (env ) {
18
18
// Scenario: Sign in using a totp code when both SMS and TOTP are enabled
19
19
testWidgets ('can select TOTP MFA' , (tester) async {
20
- final username = generateUsername ();
20
+ final username = env. generateUsername ();
21
21
final password = generatePassword ();
22
22
final phoneNumber = generateUSPhoneNumber ();
23
23
@@ -121,7 +121,7 @@ void main() {
121
121
122
122
// Scenario: Sign in using a SMS code when both SMS and TOTP are enabled
123
123
testWidgets ('can select SMS MFA' , (tester) async {
124
- final username = generateUsername ();
124
+ final username = env. generateUsername ();
125
125
final password = generatePassword ();
126
126
final phoneNumber = generateUSPhoneNumber ();
127
127
Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ void main() {
14
14
testRunner.setupTests ();
15
15
16
16
group ('sign-in-totp-mfa' , () {
17
- testRunner.withEnvironment (MfaEnvironment . mfaRequiredTotp, () {
17
+ testRunner.withEnvironment (mfaRequiredTotp, (env ) {
18
18
// Scenario: Sign in using a totp code
19
19
testWidgets ('Setup & Sign in with TOTP MFA' , (tester) async {
20
- final username = generateUsername ();
20
+ final username = env. generateUsername ();
21
21
final password = generatePassword ();
22
22
late String sharedSecret;
23
23
You can’t perform that action at this time.
0 commit comments