From b6896b24b165b7bd03e4920a2d1e5b8124daa3b7 Mon Sep 17 00:00:00 2001 From: uo288543 Date: Sat, 27 Apr 2024 19:51:55 +0200 Subject: [PATCH] fix navbar test --- webapp/src/__tests__/components/NavBar.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/__tests__/components/NavBar.test.js b/webapp/src/__tests__/components/NavBar.test.js index cd54777..8d40057 100644 --- a/webapp/src/__tests__/components/NavBar.test.js +++ b/webapp/src/__tests__/components/NavBar.test.js @@ -121,7 +121,7 @@ describe('NavBar component', () => { ); // Checks select menu is in the nav - const selectLang = screen.getByText("English"); + const selectLang = screen.getAllByText("English")[0]; await expect(selectLang).toBeInTheDocument(); // Click on it and check both options are there