From d0402af38925c75672f7e1a695d72121b15aee65 Mon Sep 17 00:00:00 2001 From: Lyn Long Date: Tue, 22 Oct 2024 18:03:03 +1100 Subject: [PATCH] :white_check_mark: pass test --- src/components/layout/components/MainMenu.tsx | 3 +-- src/components/search/SearchbarButtonGroup.tsx | 1 - src/components/search/__test__/ComplexTextSearch.test.tsx | 5 +++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/components/layout/components/MainMenu.tsx b/src/components/layout/components/MainMenu.tsx index 4087d973..88b433fc 100644 --- a/src/components/layout/components/MainMenu.tsx +++ b/src/components/layout/components/MainMenu.tsx @@ -9,8 +9,7 @@ const MAIN_MENUS: Menu[] = [ { menuName: "DATA", items: [{ name: "item 1", handler: () => {} }] }, { menuName: "LEARN", items: [{ name: "item 1", handler: () => {} }] }, { menuName: "ENGAGE", items: [{ name: "item 1", handler: () => {} }] }, - { menuName: "CONTACT", items: [{ name: "item 1", handler: () => {} }] }, - { menuName: "ABOUT", items: [{ name: "item 1", handler: () => {} }] }, + { menuName: "NEWS", items: [{ name: "item 1", handler: () => {} }] }, ]; interface MainMenuProps { diff --git a/src/components/search/SearchbarButtonGroup.tsx b/src/components/search/SearchbarButtonGroup.tsx index a210fd3e..207d4582 100644 --- a/src/components/search/SearchbarButtonGroup.tsx +++ b/src/components/search/SearchbarButtonGroup.tsx @@ -92,7 +92,6 @@ const SearchbarButtonGroup: FC = ({ backgroundColor: color.brightBlue.dark, }, }} - aria-label="search" /> ); diff --git a/src/components/search/__test__/ComplexTextSearch.test.tsx b/src/components/search/__test__/ComplexTextSearch.test.tsx index d2f22e43..7620c5b6 100644 --- a/src/components/search/__test__/ComplexTextSearch.test.tsx +++ b/src/components/search/__test__/ComplexTextSearch.test.tsx @@ -35,8 +35,9 @@ describe("ComplexTextSearch Component", () => { }); it("renders ComplexTextSearch", () => { - expect(screen.getByText("Filters")).toBeInTheDocument(); - expect(screen.getByText("Search")).toBeInTheDocument(); + expect(screen.getByTestId("CloseIcon")).toBeInTheDocument(); + expect(screen.getByTestId("TuneIcon")).toBeInTheDocument(); + expect(screen.getByTestId("SearchIcon")).toBeInTheDocument(); }); // The visibility of Filter is tested in AdvanceFilters unit test