We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ef1fc1 commit be6cb34Copy full SHA for be6cb34
__tests__/components/sections/bounties/Navigation.test.tsx
@@ -56,10 +56,14 @@ describe("Navigation", () => {
56
const menuItems = screen.getAllByRole("listitem");
57
menuItems.forEach(() => {
58
expectedNavItems.forEach((item) => {
59
+ expect(screen.getByRole("link")).toBeInTheDocument();
60
const itemLabel = item.items.find((item) => item.label);
61
const label = itemLabel?.label;
- 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
+ }
66
});
67
68
-});
69
+});
0 commit comments