forked from baron/baron-sso
chore: snapshot local state before dev merge
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user