1
0
forked from baron/baron-sso

chore: snapshot local state before dev merge

This commit is contained in:
2026-06-17 21:25:42 +09:00
parent b2808759d2
commit 49560e8a8c
107 changed files with 8958 additions and 939 deletions

View File

@@ -179,6 +179,7 @@ async function installOrgPickerApiMock(
user("user-sales", "Sales User", "sales"),
];
const orgChartSnapshot = {
generatedAt: "2026-06-17T07:10:11Z",
tenants,
users,
};
@@ -230,16 +231,49 @@ test.beforeEach(async ({ page }) => {
test("developer navigation exposes chart, picker, and embed preview", async ({
page,
}) => {
await page.setViewportSize({ width: 1600, height: 900 });
await page.goto(withShareToken("/chart"));
await expect(page.getByRole("link", { name: "조직도" })).toBeVisible();
await expect(page.getByRole("link", { name: "조직 선택기" })).toBeVisible();
await expect(page.getByRole("link", { name: "임베딩 검증" })).toBeVisible();
await expect(page.getByTestId("orgchart-render-status-panel")).toHaveText(
"2026-06-17 16:10:11 KST",
);
let statusPanelBox = await page
.getByTestId("orgchart-render-status-panel")
.boundingBox();
expect(
(page.viewportSize()?.width ?? 1600) -
((statusPanelBox?.x ?? 0) + (statusPanelBox?.width ?? 0)),
).toBeLessThanOrEqual(20);
await page.getByRole("link", { name: "조직 선택기" }).click();
await expect(page.getByTestId("orgchart-render-status-panel")).toHaveText(
"2026-06-17 16:10:11 KST",
);
statusPanelBox = await page
.getByTestId("orgchart-render-status-panel")
.boundingBox();
expect(
(page.viewportSize()?.width ?? 1600) -
((statusPanelBox?.x ?? 0) + (statusPanelBox?.width ?? 0)),
).toBeLessThanOrEqual(20);
await page.getByRole("link", { name: "임베딩 검증" }).click();
await expect(
page.getByRole("heading", { name: "임베딩 검증" }),
).toBeVisible();
await expect(page.getByTestId("orgchart-render-status-panel")).toHaveText(
"2026-06-17 16:10:11 KST",
);
statusPanelBox = await page
.getByTestId("orgchart-render-status-panel")
.boundingBox();
expect(
(page.viewportSize()?.width ?? 1600) -
((statusPanelBox?.x ?? 0) + (statusPanelBox?.width ?? 0)),
).toBeLessThanOrEqual(20);
await expect(
page
.frameLocator("iframe")