From 525fcc7befef661c22a414674150980b32b3a60b Mon Sep 17 00:00:00 2001 From: Dotta Date: Sat, 6 Jun 2026 13:32:53 +0000 Subject: [PATCH] PAP-10430: keep sidebar IA tests on issue wording --- ui/src/components/Sidebar.test.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/src/components/Sidebar.test.tsx b/ui/src/components/Sidebar.test.tsx index 26453eb116c..bb072a3b0df 100644 --- a/ui/src/components/Sidebar.test.tsx +++ b/ui/src/components/Sidebar.test.tsx @@ -167,19 +167,19 @@ describe("Sidebar", () => { }); }); - it("streamlined (flag ON): New Task button, Tasks label, top-level Projects link, no per-project collapsible", async () => { + it("streamlined (flag ON): keeps Issue wording, top-level Projects link, no per-project collapsible", async () => { mockInstanceSettingsApi.getExperimental.mockResolvedValue({ enableIsolatedWorkspaces: false, enableStreamlinedLeftNavigation: true, }); const root = await renderSidebar(); - expect(container.textContent).toContain("New Task"); - expect(container.textContent).not.toContain("New Issue"); + expect(container.textContent).toContain("New Issue"); + expect(container.textContent).not.toContain("New Task"); const navLabels = [...container.querySelectorAll("nav a")].map((a) => a.textContent?.trim()); - expect(navLabels).toContain("Tasks"); - expect(navLabels).not.toContain("Issues"); + expect(navLabels).toContain("Issues"); + expect(navLabels).not.toContain("Tasks"); const projectsLink = [...container.querySelectorAll("nav a")].find((a) => a.textContent?.trim() === "Projects"); expect(projectsLink?.getAttribute("href")).toBe("/projects");