Skip to content

Commit

Permalink
fix: Changing the signup.test error submitting the info
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiorodriguezgarcia committed Mar 4, 2024
1 parent 8e72663 commit 35de8f7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions webapp/src/tests/Signup.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,12 @@ describe('Signup Component', () => {
const emailInput = getByPlaceholderText('session.email');
const usernameInput = getByPlaceholderText('session.username');
const passwordInput = getByPlaceholderText('session.password');
const confirmPasswordInput = getByPlaceholderText('session.confirm_password');
const signUpButton = getByText('Sign Up');

// Fill out the form with valid data and submit it
fireEvent.change(emailInput, { target: { value: '[email protected]' } });
fireEvent.change(usernameInput, { target: { value: 'testuser' } });
fireEvent.change(passwordInput, { target: { value: 'password' } });
fireEvent.change(confirmPasswordInput, { target: { value: 'password' } });
fireEvent.click(signUpButton);

// Check if the form data was sent correctly
Expand Down

0 comments on commit 35de8f7

Please sign in to comment.