Skip to content

Commit

Permalink
Arreglando fallo test mainpage
Browse files Browse the repository at this point in the history
  • Loading branch information
baraganio committed Apr 22, 2024
1 parent ea0daa4 commit 392bf3d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions webapp/src/components/MainPage.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ describe('MainPage component', () => {
const element1 = screen.getByText(/¡Bienvenido a/);
const element2 = screen.getByText(/WIQ 2024!/);
const newGameButton = screen.getByRole('button', { name: 'Nuevo juego' });
const historicalQuestionsButton = screen.getByRole('button', { name: 'Historial de preguntas' });
const historialUserDataButton = screen.getByRole('button', { name: 'Historial de usuario' });
const registerUsersButton = screen.getByRole('button', { name: 'Usuarios registrados' });

// Verifica si el elemento se encuentra en el DOM
expect(element1).toBeInTheDocument();
Expand All @@ -32,9 +29,6 @@ describe('MainPage component', () => {
// Simulate user input
await act(async () => {
fireEvent.click(newGameButton);
fireEvent.click(historicalQuestionsButton);
fireEvent.click(historialUserDataButton);
fireEvent.click(registerUsersButton);
});
});
});
Expand Down

0 comments on commit 392bf3d

Please sign in to comment.