From c847537aaf8349a29c294c73c5210aa66e7decc2 Mon Sep 17 00:00:00 2001 From: uo289039 Date: Thu, 14 Mar 2024 18:10:36 +0100 Subject: [PATCH] Intento arreglo de tests 15, encontrando todos los errores --- webapp/src/components/Login.test.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/webapp/src/components/Login.test.js b/webapp/src/components/Login.test.js index 3fc7e741..61f1865d 100644 --- a/webapp/src/components/Login.test.js +++ b/webapp/src/components/Login.test.js @@ -34,9 +34,9 @@ describe('Login component', () => { // Verify that the user information is displayed //expect(screen.getByText(/Hello testUser!/i)).toBeInTheDocument(); - //expect(screen.getByText(/Your account was created on 1\/1\/2024/i)).toBeInTheDocument(); - expect(sendLogin.mock.calls[0][0]).toBe(false); - expect(sendUsername.mock.calls[0][0]).toBe('testUser'); + expect(screen.getByText(/Your account was created on 1\/1\/2024/i)).toBeInTheDocument(); + // expect(sendLogin.mock.calls[0][0]).toBe(false); + // expect(sendUsername.mock.calls[0][0]).toBe('testUser'); }); it('should handle error when logging in', async () => { @@ -66,8 +66,8 @@ describe('Login component', () => { // Verify that the user information is not displayed //expect(screen.queryByText(/Hello testUser!/i)).toBeNull(); - //expect(screen.queryByText(/Your account was created on/i)).toBeNull(); - expect(sendLogin.mock.calls[0]).toBe(undefined); - expect(sendUsername.mock.calls[0]).toBe(undefined); + expect(screen.queryByText(/Your account was created on/i)).toBeNull(); + // expect(sendLogin.mock.calls[0]).toBe(undefined); + // expect(sendUsername.mock.calls[0]).toBe(undefined); }); });