@@ -20,6 +20,9 @@ test.describe('severity-1 #smoke', () => {
2020
2121 // Enter incorrect old password and verify the tooltip error
2222 await settings . password . changeButton . click ( ) ;
23+
24+ await settings . confirmMfaGuard ( credentials . email ) ;
25+
2326 await changePassword . fillOutChangePassword (
2427 'Incorrect Password' ,
2528 newPassword
@@ -40,6 +43,9 @@ test.describe('severity-1 #smoke', () => {
4043
4144 // Enter the correct old password and verify that change password is successful
4245 await settings . password . changeButton . click ( ) ;
46+
47+ await settings . confirmMfaGuard ( credentials . email ) ;
48+
4349 await changePassword . fillOutChangePassword ( initialPassword , newPassword ) ;
4450
4551 await expect ( settings . settingsHeading ) . toBeVisible ( ) ;
@@ -56,32 +62,6 @@ test.describe('severity-1 #smoke', () => {
5662 credentials . password = newPassword ;
5763 } ) ;
5864
59- test ( 'change password with short password tooltip shows, cancel and try to change password again, tooltip is not shown' , async ( {
60- target,
61- pages : { page, changePassword, settings, signin } ,
62- testAccountTracker,
63- } ) => {
64- const credentials = await testAccountTracker . signUp ( ) ;
65- await signInAccount ( target , page , settings , signin , credentials ) ;
66-
67- await settings . goto ( ) ;
68- await settings . password . changeButton . click ( ) ;
69-
70- await expect ( changePassword . changePasswordHeading ) . toBeVisible ( ) ;
71-
72- await changePassword . newPasswordTextbox . fill ( 'short' ) ;
73-
74- await expect ( changePassword . passwordLengthInvalidIcon ) . toBeVisible ( ) ;
75-
76- await changePassword . cancelButton . click ( ) ;
77-
78- await expect ( settings . settingsHeading ) . toBeVisible ( ) ;
79-
80- await settings . password . changeButton . click ( ) ;
81-
82- await expect ( changePassword . passwordLengthUnsetIcon ) . toBeVisible ( ) ;
83- } ) ;
84-
8565 test ( 'reset password via settings works' , async ( {
8666 target,
8767 pages : { page, changePassword, resetPassword, settings, signin } ,
@@ -94,6 +74,8 @@ test.describe('severity-1 #smoke', () => {
9474
9575 await settings . password . changeButton . click ( ) ;
9676
77+ await settings . confirmMfaGuard ( credentials . email ) ;
78+
9779 await expect ( changePassword . changePasswordHeading ) . toBeVisible ( ) ;
9880
9981 await changePassword . forgotPasswordLink . click ( ) ;
0 commit comments