Skip to content

Commit

Permalink
Fix instructions tests
Browse files Browse the repository at this point in the history
  • Loading branch information
uo288347 committed Apr 28, 2024
1 parent 29a1be0 commit 0ff6c82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webapp/src/__tests__/pages/Instructions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ describe('Instructions component', () => {
expect(gameNames2).toHaveLength(1); // Check the expected number of matches

await waitFor(() => {
expect(screen.queryByText(/The player chooses a topic from five available options/)).not.toBeInTheDocument();
expect(screen.queryByText(/The player chooses a topic from some available options/)).not.toBeInTheDocument();
});
});

Expand All @@ -103,7 +103,7 @@ describe('Instructions component', () => {
expect(gameName).toHaveLength(2); // Check the expected number of matches

await waitFor(() => {
const gameDescription = screen.getByText(/It consists of ten topics of varied themes/);
const gameDescription = screen.getByText(/It consists of topics of varied themes./);
expect(gameDescription).toBeInTheDocument();
});
});
Expand Down Expand Up @@ -148,7 +148,7 @@ describe('Instructions component', () => {
const gameName = await screen.findAllByText(game.nombre);
expect(gameName).toHaveLength(2); // Check the expected number of matches

const gameDescription = await screen.findByText(game.descripcion);
const gameDescription = await screen.findByText(game.description);
expect(gameDescription).toBeInTheDocument();
});
});
Expand Down

0 comments on commit 0ff6c82

Please sign in to comment.