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:
@@ -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;
|
||||||
|
|||||||
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user