Skip to content

Commit

Permalink
chore: update authenticator tests (#5296)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan-Nelson authored Aug 14, 2024
1 parent dc33017 commit 4e943d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ void main() {
testRunner.setupTests();

group('sign-in-sms-totp-mfa', () {
testRunner.withEnvironment(MfaEnvironment.mfaRequiredSmsTotp, () {
testRunner.withEnvironment(mfaRequiredSmsTotp, (env) {
// Scenario: Sign in using a totp code when both SMS and TOTP are enabled
testWidgets('can select TOTP MFA', (tester) async {
final username = generateUsername();
final username = env.generateUsername();
final password = generatePassword();
final phoneNumber = generateUSPhoneNumber();

Expand Down Expand Up @@ -121,7 +121,7 @@ void main() {

// Scenario: Sign in using a SMS code when both SMS and TOTP are enabled
testWidgets('can select SMS MFA', (tester) async {
final username = generateUsername();
final username = env.generateUsername();
final password = generatePassword();
final phoneNumber = generateUSPhoneNumber();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ void main() {
testRunner.setupTests();

group('sign-in-totp-mfa', () {
testRunner.withEnvironment(MfaEnvironment.mfaRequiredTotp, () {
testRunner.withEnvironment(mfaRequiredTotp, (env) {
// Scenario: Sign in using a totp code
testWidgets('Setup & Sign in with TOTP MFA', (tester) async {
final username = generateUsername();
final username = env.generateUsername();
final password = generatePassword();
late String sharedSecret;

Expand Down

0 comments on commit 4e943d7

Please sign in to comment.