From 1b1f9ec977b6caa72812163b9af57ffec75be9d6 Mon Sep 17 00:00:00 2001 From: Emil Date: Mon, 18 Dec 2023 09:29:55 +0100 Subject: [PATCH] Used email field correctly in integration test --- __tests__/integrationsTests/userHandler.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__tests__/integrationsTests/userHandler.test.tsx b/__tests__/integrationsTests/userHandler.test.tsx index c5028d5..5525d19 100644 --- a/__tests__/integrationsTests/userHandler.test.tsx +++ b/__tests__/integrationsTests/userHandler.test.tsx @@ -84,7 +84,7 @@ describe('UserHandler', () => { render() fireEvent.changeText(screen.getByTestId('username'), expectedUsername) fireEvent.changeText(screen.getByTestId('password'), expectedPassword) - fireEvent.changeText(screen.getByTestId('name'), expectedEmail) + fireEvent.changeText(screen.getByTestId('email'), expectedEmail) fireEvent.changeText(screen.getByTestId('name'), expectedName) fireEvent.press(screen.getByText('createUser')) }); @@ -105,7 +105,7 @@ describe('UserHandler', () => { render() fireEvent.changeText(screen.getByTestId('username'), expectedUsername) fireEvent.changeText(screen.getByTestId('password'), expectedPassword) - fireEvent.changeText(screen.getByTestId('name'), expectedEmail) + fireEvent.changeText(screen.getByTestId('email'), expectedEmail) fireEvent.changeText(screen.getByTestId('name'), expectedName) fireEvent.press(screen.getByText('createUser')) });