1
0
forked from baron/baron-sso

test(orgfront): align dense member column fixture

This commit is contained in:
2026-05-29 08:45:39 +09:00
parent 731ae9251e
commit 6a6730b544

View File

@@ -233,7 +233,7 @@ test("org chart non-shared title does not render the MH Dashboard eyebrow", asyn
test("org chart renders dense member nodes with calculated member columns", async ({
page,
}) => {
const denseUsers = Array.from({ length: 6 }, (_, index) =>
const denseUsers = Array.from({ length: 10 }, (_, index) =>
user(`u-dense-${index + 1}`, `Dense User ${index + 1}`, "baron"),
);
@@ -254,7 +254,7 @@ test("org chart renders dense member nodes with calculated member columns", asyn
const rootNode = page.locator('[data-testid="orgchart-node-root"]');
await expect(rootNode).toHaveAttribute("width", /[4-9]\d{2,}/);
await expect(rootNode.locator('[data-member-columns="2"]')).toBeVisible();
await expect(rootNode.getByText("Dense User 6")).toBeVisible();
await expect(rootNode.getByText("Dense User 10")).toBeVisible();
});
test("public org chart hides internal and private tenants and renders org unit type", async ({