test(FN-4121): complete Step 7 — cover labeled org chart layout toggle

Fusion-Task-Id: FN-4121
Fusion-Task-Lineage: aa8b8ab7-c250-4ce5-b42e-7b7a2ba920b1
This commit is contained in:
Fusion
2026-05-13 02:57:35 -07:00
committed by gsxdsm
parent fa4b8a55ec
commit f804e41dad
2 changed files with 7 additions and 0 deletions

View File

@@ -1270,6 +1270,10 @@
gap: var(--space-sm); gap: var(--space-sm);
} }
.agent-org-chart-toolbar {
display: none;
}
.agent-org-chart-controls .agent-org-chart-layout-toggle { .agent-org-chart-controls .agent-org-chart-layout-toggle {
order: 1; order: 1;
display: grid; display: grid;

View File

@@ -1470,6 +1470,9 @@ describe("AgentsView", () => {
const verticalButton = within(toggle).getByRole("button", { name: "Vertical layout" }); const verticalButton = within(toggle).getByRole("button", { name: "Vertical layout" });
const autoButton = within(toggle).getByRole("button", { name: "Automatic layout" }); const autoButton = within(toggle).getByRole("button", { name: "Automatic layout" });
expect(within(horizontalButton).getByText("Horizontal")).toBeTruthy();
expect(within(verticalButton).getByText("Vertical")).toBeTruthy();
expect(within(autoButton).getByText("Auto")).toBeTruthy();
expect(verticalButton.getAttribute("aria-pressed")).toBe("true"); expect(verticalButton.getAttribute("aria-pressed")).toBe("true");
expect(horizontalButton.getAttribute("aria-pressed")).toBe("false"); expect(horizontalButton.getAttribute("aria-pressed")).toBe("false");
expect(autoButton.getAttribute("aria-pressed")).toBe("false"); expect(autoButton.getAttribute("aria-pressed")).toBe("false");