@@ -31,7 +31,7 @@ import {
31
31
getTestInstance ,
32
32
getTotpCode ,
33
33
email ,
34
- fakePassword ,
34
+ password ,
35
35
incorrectTotpCode
36
36
} from '../../helpers/integration/helpers' ;
37
37
@@ -77,7 +77,7 @@ describe(' Integration tests: Mfa enrollement using totp', () => {
77
77
this . skip ( ) ;
78
78
}
79
79
80
- const cr = await signInWithEmailAndPassword ( auth , email , fakePassword ) ;
80
+ const cr = await signInWithEmailAndPassword ( auth , email , password ) ;
81
81
mfaUser = multiFactor ( cr . user ) ;
82
82
const session = await mfaUser . getSession ( ) ;
83
83
totpSecret = await TotpMultiFactorGenerator . generateSecret ( session ) ;
@@ -98,7 +98,7 @@ describe(' Integration tests: Mfa enrollement using totp', () => {
98
98
this . skip ( ) ;
99
99
}
100
100
101
- const cr = await signInWithEmailAndPassword ( auth , email , fakePassword ) ;
101
+ const cr = await signInWithEmailAndPassword ( auth , email , password ) ;
102
102
mfaUser = multiFactor ( cr . user ) ;
103
103
const session = await mfaUser . getSession ( ) ;
104
104
totpSecret = await TotpMultiFactorGenerator . generateSecret ( session ) ;
@@ -130,7 +130,7 @@ describe('Integration tests: sign-in for mfa-enrolled users', () => {
130
130
auth = getTestInstance ( ) ;
131
131
displayName = 'totp-integration-test' ;
132
132
133
- const cr = await signInWithEmailAndPassword ( auth , email , fakePassword ) ;
133
+ const cr = await signInWithEmailAndPassword ( auth , email , password ) ;
134
134
mfaUser = multiFactor ( cr . user ) ;
135
135
const session = await mfaUser . getSession ( ) ;
136
136
totpSecret = await TotpMultiFactorGenerator . generateSecret ( session ) ;
@@ -169,7 +169,7 @@ describe('Integration tests: sign-in for mfa-enrolled users', () => {
169
169
this . skip ( ) ;
170
170
}
171
171
try {
172
- await signInWithEmailAndPassword ( auth , email , fakePassword ) ;
172
+ await signInWithEmailAndPassword ( auth , email , password ) ;
173
173
174
174
throw new Error ( 'Signin should not have been successful' ) ;
175
175
} catch ( error ) {
@@ -196,7 +196,7 @@ describe('Integration tests: sign-in for mfa-enrolled users', () => {
196
196
this . skip ( ) ;
197
197
}
198
198
try {
199
- await signInWithEmailAndPassword ( auth , email , fakePassword ) ;
199
+ await signInWithEmailAndPassword ( auth , email , password ) ;
200
200
201
201
throw new Error ( 'Signin should not have been successful' ) ;
202
202
} catch ( error ) {
@@ -223,7 +223,7 @@ describe('Integration tests: sign-in for mfa-enrolled users', () => {
223
223
mfaUser = multiFactor ( userCredential . user ) ;
224
224
225
225
await expect ( mfaUser . unenroll ( resolver . hints [ 0 ] . uid ) ) . to . be . fulfilled ;
226
- await expect ( signInWithEmailAndPassword ( auth , email , fakePassword ) ) . to . be
226
+ await expect ( signInWithEmailAndPassword ( auth , email , password ) ) . to . be
227
227
. fulfilled ;
228
228
}
229
229
} ) ;
0 commit comments