forked from baron/baron-sso
dev 반영 code check 오류 수정
This commit is contained in:
@@ -462,7 +462,8 @@ test.describe("User Management", () => {
|
||||
"John Doe john@test.com 010-1111-2222",
|
||||
);
|
||||
|
||||
await page.getByTestId("user-status-toggle-u-1").click();
|
||||
await page.getByTestId("user-status-select-u-1").click();
|
||||
await page.getByRole("option", { name: /비활성|inactive/i }).click();
|
||||
await expect
|
||||
.poll(() => updatePayload)
|
||||
.toMatchObject({ status: "inactive" });
|
||||
@@ -816,22 +817,27 @@ test.describe("User Management", () => {
|
||||
(form as HTMLFormElement).requestSubmit();
|
||||
});
|
||||
|
||||
await expect.poll(() => updatePayload).toMatchObject({
|
||||
tenantSlug: "hanmac-team",
|
||||
primaryTenantId: "hanmac-team-id",
|
||||
primaryTenantName: "한맥팀",
|
||||
primaryTenantIsOwner: true,
|
||||
metadata: {
|
||||
await expect
|
||||
.poll(() => updatePayload)
|
||||
.toMatchObject({
|
||||
tenantSlug: "hanmac-team",
|
||||
primaryTenantId: "hanmac-team-id",
|
||||
primaryTenantName: "한맥팀",
|
||||
primaryTenantSlug: "hanmac-team",
|
||||
primaryTenantIsOwner: true,
|
||||
additionalAppointments: [
|
||||
{ tenantId: "03dbe16b-e47b-4f72-927b-782807d67a35", isPrimary: false },
|
||||
{ tenantId: "hanmac-team-id", isPrimary: true },
|
||||
],
|
||||
},
|
||||
});
|
||||
metadata: {
|
||||
primaryTenantId: "hanmac-team-id",
|
||||
primaryTenantName: "한맥팀",
|
||||
primaryTenantSlug: "hanmac-team",
|
||||
primaryTenantIsOwner: true,
|
||||
additionalAppointments: [
|
||||
{
|
||||
tenantId: "03dbe16b-e47b-4f72-927b-782807d67a35",
|
||||
isPrimary: false,
|
||||
},
|
||||
{ tenantId: "hanmac-team-id", isPrimary: true },
|
||||
],
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
test("should show conflict error when creating with an existing Login ID", async ({
|
||||
|
||||
@@ -211,11 +211,9 @@ test.describe("Worksmobile tenant management", () => {
|
||||
name: /바론에만 있음|웍스에만 있음|양쪽 다 있음/,
|
||||
})
|
||||
.allTextContents();
|
||||
await expect.poll(() => filterButtons).toEqual([
|
||||
"바론에만 있음",
|
||||
"웍스에만 있음",
|
||||
"양쪽 다 있음",
|
||||
]);
|
||||
await expect
|
||||
.poll(() => filterButtons)
|
||||
.toEqual(["바론에만 있음", "웍스에만 있음", "양쪽 다 있음"]);
|
||||
|
||||
await page.getByRole("button", { name: "웍스에만 있음" }).click();
|
||||
await expect(page.getByText("박웍스")).not.toBeVisible();
|
||||
@@ -481,16 +479,17 @@ test.describe("Worksmobile tenant management", () => {
|
||||
Math.max(pageOverflow.documentScrollWidth, pageOverflow.bodyScrollWidth),
|
||||
).toBeLessThanOrEqual(pageOverflow.viewportWidth + 1);
|
||||
|
||||
const userTableScroll = await page.locator("table").first().evaluate(
|
||||
(table) => {
|
||||
const userTableScroll = await page
|
||||
.locator("table")
|
||||
.first()
|
||||
.evaluate((table) => {
|
||||
const container = table.parentElement?.parentElement as HTMLElement;
|
||||
return {
|
||||
clientWidth: container.clientWidth,
|
||||
overflowX: window.getComputedStyle(container).overflowX,
|
||||
scrollWidth: container.scrollWidth,
|
||||
};
|
||||
},
|
||||
);
|
||||
});
|
||||
expect(userTableScroll.overflowX).toBe("auto");
|
||||
expect(userTableScroll.scrollWidth).toBeGreaterThan(
|
||||
userTableScroll.clientWidth,
|
||||
|
||||
Reference in New Issue
Block a user