From 36bef147e2e4909ebe43864d09d9addf3b9bdd04 Mon Sep 17 00:00:00 2001 From: markgol777 Date: Sun, 24 Nov 2024 18:16:20 +0100 Subject: [PATCH] fixed some tests --- .../guest-home-page/reset-password/ResetPassword.spec.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/containers/guest-home-page/reset-password/ResetPassword.spec.jsx b/tests/unit/containers/guest-home-page/reset-password/ResetPassword.spec.jsx index a2d3e3fb1..b7a19f052 100644 --- a/tests/unit/containers/guest-home-page/reset-password/ResetPassword.spec.jsx +++ b/tests/unit/containers/guest-home-page/reset-password/ResetPassword.spec.jsx @@ -30,8 +30,8 @@ describe('ResetPassword test', () => { ) const button = screen.getByText('login.savePassword') - fireEvent.change(passwordInput, { target: { value: '12345qwertY' } }) - fireEvent.change(confirmPasswordInput, { target: { value: '12345qwertY' } }) + fireEvent.change(passwordInput, { target: { value: '12345qwertY$' } }) + fireEvent.change(confirmPasswordInput, { target: { value: '12345qwertY$' } }) await waitFor(() => { fireEvent.click(button) @@ -59,8 +59,8 @@ describe('ResetPassword test', () => { ) const button = screen.getByText('login.savePassword') - fireEvent.change(passwordInput, { target: { value: '12345qwertY' } }) - fireEvent.change(confirmPasswordInput, { target: { value: '12345qwertY' } }) + fireEvent.change(passwordInput, { target: { value: '12345qwertY$' } }) + fireEvent.change(confirmPasswordInput, { target: { value: '12345qwertY$' } }) fireEvent.click(button) const snackbar = await screen.findByText('errors.BAD_RESET_TOKEN')