Skip to content

Commit

Permalink
✅ pass test
Browse files Browse the repository at this point in the history
  • Loading branch information
NekoLyn committed Oct 22, 2024
1 parent 43b1836 commit d0402af
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/components/layout/components/MainMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion src/components/search/SearchbarButtonGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ const SearchbarButtonGroup: FC<SearchbarButtonGroupProps> = ({
backgroundColor: color.brightBlue.dark,
},
}}
aria-label="search"
/>
</Stack>
);
Expand Down
5 changes: 3 additions & 2 deletions src/components/search/__test__/ComplexTextSearch.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d0402af

Please sign in to comment.