diff --git a/packages/auth/test/helpers/integration/helpers.ts b/packages/auth/test/helpers/integration/helpers.ts index 41cdac9fbf8..c0faf4220b6 100644 --- a/packages/auth/test/helpers/integration/helpers.ts +++ b/packages/auth/test/helpers/integration/helpers.ts @@ -113,6 +113,6 @@ export function getTotpCode( return token; } export const email = 'totpuser-donotdelete@test.com'; -export const fakePassword = 'password'; +export const password = 'password'; //1000000 is always incorrect since it has 7 digits and we expect 6. export const incorrectTotpCode = '1000000'; diff --git a/packages/auth/test/integration/flows/totp.test.ts b/packages/auth/test/integration/flows/totp.test.ts index 067aad77eb6..4a256b15659 100644 --- a/packages/auth/test/integration/flows/totp.test.ts +++ b/packages/auth/test/integration/flows/totp.test.ts @@ -31,7 +31,7 @@ import { getTestInstance, getTotpCode, email, - fakePassword, + password, incorrectTotpCode } from '../../helpers/integration/helpers'; @@ -77,7 +77,7 @@ describe(' Integration tests: Mfa enrollement using totp', () => { this.skip(); } - const cr = await signInWithEmailAndPassword(auth, email, fakePassword); + const cr = await signInWithEmailAndPassword(auth, email, password); mfaUser = multiFactor(cr.user); const session = await mfaUser.getSession(); totpSecret = await TotpMultiFactorGenerator.generateSecret(session); @@ -98,7 +98,7 @@ describe(' Integration tests: Mfa enrollement using totp', () => { this.skip(); } - const cr = await signInWithEmailAndPassword(auth, email, fakePassword); + const cr = await signInWithEmailAndPassword(auth, email, password); mfaUser = multiFactor(cr.user); const session = await mfaUser.getSession(); totpSecret = await TotpMultiFactorGenerator.generateSecret(session); @@ -130,7 +130,7 @@ describe('Integration tests: sign-in for mfa-enrolled users', () => { auth = getTestInstance(); displayName = 'totp-integration-test'; - const cr = await signInWithEmailAndPassword(auth, email, fakePassword); + const cr = await signInWithEmailAndPassword(auth, email, password); mfaUser = multiFactor(cr.user); const session = await mfaUser.getSession(); totpSecret = await TotpMultiFactorGenerator.generateSecret(session); @@ -169,7 +169,7 @@ describe('Integration tests: sign-in for mfa-enrolled users', () => { this.skip(); } try { - await signInWithEmailAndPassword(auth, email, fakePassword); + await signInWithEmailAndPassword(auth, email, password); throw new Error('Signin should not have been successful'); } catch (error) { @@ -196,7 +196,7 @@ describe('Integration tests: sign-in for mfa-enrolled users', () => { this.skip(); } try { - await signInWithEmailAndPassword(auth, email, fakePassword); + await signInWithEmailAndPassword(auth, email, password); throw new Error('Signin should not have been successful'); } catch (error) { @@ -223,7 +223,7 @@ describe('Integration tests: sign-in for mfa-enrolled users', () => { mfaUser = multiFactor(userCredential.user); await expect(mfaUser.unenroll(resolver.hints[0].uid)).to.be.fulfilled; - await expect(signInWithEmailAndPassword(auth, email, fakePassword)).to.be + await expect(signInWithEmailAndPassword(auth, email, password)).to.be .fulfilled; } });