Skip to content

Commit

Permalink
Update Juego.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
UO277938 committed Apr 28, 2024
1 parent 3f8d931 commit 130b2ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webapp/src/components/tests/Juego.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ describe('Juego component', () => {
const { container, getByText } = render(<Juego isLogged={true} username="test" numPreguntas={1} />);
await waitFor(() => getByText(mockData.question));
fireEvent.click(getByText('SIGUIENTE'));
fireEvent.click(getByText('FINALIZAR PARTIDA'));
expect(getByText('FINALIZAR PARTIDA')).toBeDisabled();
console.log(container.numRespuestasCorrectas)
fireEvent.click(getByText('GUARDAR ESTADÍSTICAS'));
//expect(getByText('GUARDAR ESTADÍSTICAS')).toBeDisabled();
expect(getByText('Comience nueva partida o visite sus estadísticas!!')).toBeInTheDocument()
//expect(axios.get).toHaveBeenCalledWith('http://localhost:8000/updateStats?username=test&numRespuestasCorrectas=0&numRespuestasIncorrectas=0');
});

Expand Down

0 comments on commit 130b2ac

Please sign in to comment.