Skip to content

Commit

Permalink
Used email field correctly in integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
emilnormann committed Dec 18, 2023
1 parent f80c9f6 commit 1b1f9ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __tests__/integrationsTests/userHandler.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ describe('UserHandler', () => {
render(<UserHandlerTestScreen testDb={GunDB.gun} callback={callbackTest} />)
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'))
});
Expand All @@ -105,7 +105,7 @@ describe('UserHandler', () => {
render(<UserHandlerTestScreen testDb={GunDB.gun} callback={callbackTest} />)
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'))
});
Expand Down

0 comments on commit 1b1f9ec

Please sign in to comment.