mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-28 12:04:41 +01:00
PAP-10430: keep sidebar IA tests on issue wording
This commit is contained in:
1 parent
898cdca91c
commit
525fcc7bef
1 file changed
+5
-5
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user