From 137adecb9fbb1b64133e7387df7056b5caf6accd Mon Sep 17 00:00:00 2001 From: sandrvvu Date: Thu, 21 Nov 2024 14:37:20 +0200 Subject: [PATCH] fix: invalid password value in change password modal test --- .../ChangePasswordModal.spec.jsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/unit/containers/edit-profile/password-security-tab/ChangePasswordModal.spec.jsx b/tests/unit/containers/edit-profile/password-security-tab/ChangePasswordModal.spec.jsx index d466cc8fb..a5061f4a6 100644 --- a/tests/unit/containers/edit-profile/password-security-tab/ChangePasswordModal.spec.jsx +++ b/tests/unit/containers/edit-profile/password-security-tab/ChangePasswordModal.spec.jsx @@ -61,13 +61,13 @@ describe('ChangePasswordModal', () => { ) fireEvent.change(currentPasswordInput, { - target: { value: '12345qwert' } + target: { value: '12345qwert!' } }) fireEvent.change(passwordInput, { - target: { value: '12345qwertY' } + target: { value: '12345qwertY!' } }) fireEvent.change(confirmPasswordInput, { - target: { value: '12345qwertY' } + target: { value: '12345qwertY!' } }) await waitFor(() => { @@ -81,8 +81,8 @@ describe('ChangePasswordModal', () => { expect(AuthService.changePassword).toHaveBeenCalledWith( userDataMock._id, { - password: '12345qwertY', - currentPassword: '12345qwert' + password: '12345qwertY!', + currentPassword: '12345qwert!' } ) }) @@ -109,13 +109,13 @@ describe('ChangePasswordModal', () => { ) fireEvent.change(currentPasswordInput, { - target: { value: '12345qwertY' } + target: { value: '12345qwertY!' } }) fireEvent.change(passwordInput, { - target: { value: '12345qwertY' } + target: { value: '12345qwertY!' } }) fireEvent.change(confirmPasswordInput, { - target: { value: '12345qwertY' } + target: { value: '12345qwertY!' } }) await waitFor(() => {