From 0ff6c82530594980c0f7a8c89a77da5976bfc9d1 Mon Sep 17 00:00:00 2001 From: teresagg Date: Sun, 28 Apr 2024 22:43:54 +0200 Subject: [PATCH] Fix instructions tests --- webapp/src/__tests__/pages/Instructions.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/src/__tests__/pages/Instructions.test.js b/webapp/src/__tests__/pages/Instructions.test.js index 35e2634..e106586 100644 --- a/webapp/src/__tests__/pages/Instructions.test.js +++ b/webapp/src/__tests__/pages/Instructions.test.js @@ -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(); }); }); @@ -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(); }); }); @@ -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(); }); });