Skip to content

Commit

Permalink
Tests arreglados
Browse files Browse the repository at this point in the history
  • Loading branch information
CANCI0 committed Apr 6, 2024
1 parent 07f7825 commit b28d9fa
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion webapp/src/pages/Stats/Stats.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,16 @@ describe("Stats component", () => {
const table = await screen.findByRole('table');
expect(table).toBeInTheDocument();

const columnHeaders = ['Partidas jugadas', 'Puntos por partida', 'Puntos totales', 'Tiempo por pregunta (s):'];
const columnHeaders = [
"Partidas jugadas",
"Puntos por partida",
"Puntos totales",
"Preguntas correctas totales",
"Preguntas incorrectas totales",
"Porcentaje de aciertos",
"Tiempo por pregunta (s)",
];

columnHeaders.forEach(headerText => {
const headerElement = screen.getByText(headerText);
expect(headerElement).toBeInTheDocument();
Expand Down

0 comments on commit b28d9fa

Please sign in to comment.