@@ -23,7 +23,7 @@ test.describe('severity-1 #smoke', () => {
2323
2424 await settings . goto ( ) ;
2525
26- await changePrimaryEmail ( target , settings , secondaryEmail , newEmail ) ;
26+ await changePrimaryEmail ( target , settings , secondaryEmail , newEmail , credentials . email ) ;
2727
2828 await settings . signOut ( ) ;
2929
@@ -59,7 +59,7 @@ test.describe('severity-1 #smoke', () => {
5959
6060 await settings . goto ( ) ;
6161
62- await changePrimaryEmail ( target , settings , secondaryEmail , newEmail ) ;
62+ await changePrimaryEmail ( target , settings , secondaryEmail , newEmail , credentials . email ) ;
6363
6464 await setNewPassword (
6565 settings ,
@@ -101,7 +101,7 @@ test.describe('severity-1 #smoke', () => {
101101
102102 await settings . goto ( ) ;
103103
104- await changePrimaryEmail ( target , settings , secondaryEmail , secondEmail ) ;
104+ await changePrimaryEmail ( target , settings , secondaryEmail , secondEmail , credentials . email ) ;
105105
106106 await setNewPassword (
107107 settings ,
@@ -150,7 +150,7 @@ test.describe('severity-1 #smoke', () => {
150150
151151 await settings . goto ( ) ;
152152
153- await changePrimaryEmail ( target , settings , secondaryEmail , newEmail ) ;
153+ await changePrimaryEmail ( target , settings , secondaryEmail , newEmail , credentials . email ) ;
154154 await expect ( settings . primaryEmail . status ) . toHaveText ( newEmail ) ;
155155
156156 // Click delete account
@@ -185,6 +185,7 @@ test.describe('severity-1 #smoke', () => {
185185
186186 await settings . goto ( ) ;
187187 await settings . secondaryEmail . addButton . click ( ) ;
188+ await settings . confirmMfaGuard ( credentials . email ) ;
188189 await secondaryEmail . fillOutEmail ( newEmail ) ;
189190 const code : string =
190191 await target . emailClient . getVerifySecondaryCode ( newEmail ) ;
@@ -234,9 +235,11 @@ async function changePrimaryEmail(
234235 target : BaseTarget ,
235236 settings : SettingsPage ,
236237 secondaryEmail : SecondaryEmailPage ,
237- email : string
238+ email : string ,
239+ primaryEmail : string ,
238240) : Promise < void > {
239241 await settings . secondaryEmail . addButton . click ( ) ;
242+ await settings . confirmMfaGuard ( primaryEmail ) ;
240243 await secondaryEmail . fillOutEmail ( email ) ;
241244 const code : string = await target . emailClient . getVerifySecondaryCode ( email ) ;
242245 await secondaryEmail . fillOutVerificationCode ( code ) ;
0 commit comments