forked from baron/baron-sso
네이버 웍스 연동기능 개선
This commit is contained in:
@@ -133,6 +133,24 @@ test.describe("Worksmobile tenant management", () => {
|
||||
worksmobileName: "박웍스",
|
||||
status: "missing_in_baron",
|
||||
},
|
||||
{
|
||||
resourceType: "USER",
|
||||
worksmobileId: "works-hidden-su",
|
||||
externalKey: "works-hidden-su",
|
||||
worksmobileName: "숨김 SU",
|
||||
worksmobileEmail: "su-@samaneng.com",
|
||||
status: "missing_in_baron",
|
||||
},
|
||||
{
|
||||
resourceType: "USER",
|
||||
baronId: "user-hidden-cyhan1",
|
||||
baronName: "숨김 CYHAN1",
|
||||
baronEmail: "cyhan1@hanmaceng.co.kr",
|
||||
worksmobileId: "works-hidden-cyhan1",
|
||||
worksmobileName: "숨김 CYHAN1",
|
||||
worksmobileEmail: "cyhan1@hanmaceng.co.kr",
|
||||
status: "matched",
|
||||
},
|
||||
]
|
||||
: [
|
||||
{
|
||||
@@ -148,6 +166,14 @@ test.describe("Worksmobile tenant management", () => {
|
||||
worksmobileName: "박웍스",
|
||||
status: "missing_in_baron",
|
||||
},
|
||||
{
|
||||
resourceType: "USER",
|
||||
worksmobileId: "works-hidden-su",
|
||||
externalKey: "works-hidden-su",
|
||||
worksmobileName: "숨김 SU",
|
||||
worksmobileEmail: "su-@samaneng.com",
|
||||
status: "missing_in_baron",
|
||||
},
|
||||
],
|
||||
groups: [
|
||||
{
|
||||
@@ -198,6 +224,10 @@ test.describe("Worksmobile tenant management", () => {
|
||||
await expect(page.getByText("SCIM token")).not.toBeVisible();
|
||||
await expect(page.getByText("김누락")).toBeVisible();
|
||||
await expect(page.getByText("박웍스")).toBeVisible();
|
||||
await expect(page.getByText("숨김 SU")).not.toBeVisible();
|
||||
await expect(page.getByText("숨김 CYHAN1")).not.toBeVisible();
|
||||
await expect(page.getByText("su-@samaneng.com")).not.toBeVisible();
|
||||
await expect(page.getByText("cyhan1@hanmaceng.co.kr")).not.toBeVisible();
|
||||
await expect(page.getByText("WORKS 전용 조직")).toBeVisible();
|
||||
await expect(page.getByText("기술본부", { exact: true })).toBeVisible();
|
||||
await expect(page.getByText("parent-tech", { exact: true })).toBeVisible();
|
||||
@@ -206,7 +236,16 @@ test.describe("Worksmobile tenant management", () => {
|
||||
await expect(page.getByText("홍길동")).not.toBeVisible();
|
||||
expect(comparisonRequests[0]).toBe(true);
|
||||
|
||||
const filterButtons = page
|
||||
await page
|
||||
.getByPlaceholder("구성원 이름 또는 UUID 검색")
|
||||
.fill("su-@samaneng.com");
|
||||
await expect(page.getByText("숨김 SU")).not.toBeVisible();
|
||||
await page.getByPlaceholder("구성원 이름 또는 UUID 검색").fill("");
|
||||
|
||||
const userComparisonSection = page
|
||||
.getByRole("heading", { name: "구성원" })
|
||||
.locator("xpath=ancestor::div[contains(@class, 'space-y-2')][1]");
|
||||
const filterButtons = userComparisonSection
|
||||
.getByRole("button", {
|
||||
name: /바론에만 있음|웍스에만 있음|양쪽 다 있음/,
|
||||
})
|
||||
@@ -215,12 +254,16 @@ test.describe("Worksmobile tenant management", () => {
|
||||
.poll(() => filterButtons)
|
||||
.toEqual(["바론에만 있음", "웍스에만 있음", "양쪽 다 있음"]);
|
||||
|
||||
await page.getByRole("button", { name: "웍스에만 있음" }).click();
|
||||
await userComparisonSection
|
||||
.getByRole("button", { name: "웍스에만 있음" })
|
||||
.click();
|
||||
await expect(page.getByText("박웍스")).not.toBeVisible();
|
||||
await expect(page.getByText("김누락")).toBeVisible();
|
||||
await expect(page.getByText("홍길동")).not.toBeVisible();
|
||||
|
||||
await page.getByRole("button", { name: "양쪽 다 있음" }).click();
|
||||
await userComparisonSection
|
||||
.getByRole("button", { name: "양쪽 다 있음" })
|
||||
.click();
|
||||
await expect(page.getByText("홍길동")).toHaveCount(2);
|
||||
await expect(page.getByText("기술기획", { exact: true })).toBeVisible();
|
||||
await expect(page.getByText("team-tech", { exact: true })).toBeVisible();
|
||||
@@ -229,22 +272,30 @@ test.describe("Worksmobile tenant management", () => {
|
||||
await expect(page.getByText("김누락")).toBeVisible();
|
||||
await expect(page.getByText("박웍스")).not.toBeVisible();
|
||||
|
||||
await page.getByRole("button", { name: "바론에만 있음" }).click();
|
||||
await userComparisonSection
|
||||
.getByRole("button", { name: "바론에만 있음" })
|
||||
.click();
|
||||
await expect(page.getByText("홍길동")).toHaveCount(2);
|
||||
await expect(page.getByText("김누락")).not.toBeVisible();
|
||||
await expect(page.getByText("박웍스")).not.toBeVisible();
|
||||
|
||||
await page.getByRole("button", { name: "웍스에만 있음" }).click();
|
||||
await userComparisonSection
|
||||
.getByRole("button", { name: "웍스에만 있음" })
|
||||
.click();
|
||||
await expect(page.getByText("홍길동")).toHaveCount(2);
|
||||
await expect(page.getByText("김누락")).not.toBeVisible();
|
||||
await expect(page.getByText("박웍스")).toBeVisible();
|
||||
|
||||
await page.getByRole("button", { name: "양쪽 다 있음" }).click();
|
||||
await userComparisonSection
|
||||
.getByRole("button", { name: "양쪽 다 있음" })
|
||||
.click();
|
||||
await expect(page.getByText("김누락")).not.toBeVisible();
|
||||
await expect(page.getByText("박웍스")).toBeVisible();
|
||||
await expect(page.getByText("홍길동")).not.toBeVisible();
|
||||
|
||||
await page.getByRole("button", { name: "바론에만 있음" }).click();
|
||||
await userComparisonSection
|
||||
.getByRole("button", { name: "바론에만 있음" })
|
||||
.click();
|
||||
await expect(page.getByText("김누락")).toBeVisible();
|
||||
await expect(page.getByText("박웍스")).toBeVisible();
|
||||
await expect(page.getByText("홍길동")).not.toBeVisible();
|
||||
@@ -464,11 +515,13 @@ test.describe("Worksmobile tenant management", () => {
|
||||
.getByRole("button", { name: "컬럼 설정" });
|
||||
await userColumnButton.click();
|
||||
|
||||
const dialog = page.getByRole("dialog", { name: "구성원 컬럼 설정" });
|
||||
await dialog.getByLabel("Baron ID").check();
|
||||
await dialog.getByLabel("WORKS ID").check();
|
||||
await dialog.getByLabel("external_key").check();
|
||||
await dialog.getByRole("button", { name: "닫기" }).click();
|
||||
const settingsPanel = page
|
||||
.getByText("구성원 컬럼 설정")
|
||||
.locator("xpath=ancestor::*[@role='dialog'][1]");
|
||||
await settingsPanel.getByLabel("Baron ID").check();
|
||||
await settingsPanel.getByLabel("WORKS", { exact: true }).check();
|
||||
await settingsPanel.getByLabel("external_key").check();
|
||||
await settingsPanel.getByRole("button", { name: "닫기" }).click();
|
||||
|
||||
const pageOverflow = await page.evaluate(() => ({
|
||||
documentScrollWidth: document.documentElement.scrollWidth,
|
||||
|
||||
Reference in New Issue
Block a user