Skip to content

Commit be6cb34

Browse files
committed
feat: add missing test
1 parent 7ef1fc1 commit be6cb34

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

__tests__/components/sections/bounties/Navigation.test.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,14 @@ describe("Navigation", () => {
5656
const menuItems = screen.getAllByRole("listitem");
5757
menuItems.forEach(() => {
5858
expectedNavItems.forEach((item) => {
59+
expect(screen.getByRole("link")).toBeInTheDocument();
5960
const itemLabel = item.items.find((item) => item.label);
6061
const label = itemLabel?.label;
61-
expect(screen.getByText(label || "")).toBeInTheDocument();
62+
if (label) {
63+
expect(screen.getByText(label)).toBeInTheDocument();
64+
expect(screen.getByText(label).textContent).toContain("bounties.navigation.all");
65+
}
6266
});
6367
});
6468
});
65-
});
69+
});

0 commit comments

Comments
 (0)