From 01bde0925d0b24d034d83e0187ce04939ae80a2e Mon Sep 17 00:00:00 2001 From: kyy Date: Wed, 10 Jun 2026 15:59:33 +0900 Subject: [PATCH] =?UTF-8?q?adminfront/devfront=20E2E=20=EB=B0=8F=20lint=20?= =?UTF-8?q?=EC=8B=A4=ED=8C=A8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../integrity/DataIntegrityPage.test.tsx | 2 +- adminfront/tests/worksmobile.spec.ts | 4 ++++ .../tests/devfront-developer-request.spec.ts | 7 ++++++- devfront/tests/devfront-security.spec.ts | 16 ++++++++++++++-- 4 files changed, 25 insertions(+), 4 deletions(-) diff --git a/adminfront/src/features/integrity/DataIntegrityPage.test.tsx b/adminfront/src/features/integrity/DataIntegrityPage.test.tsx index e7f1e56c..3983f37d 100644 --- a/adminfront/src/features/integrity/DataIntegrityPage.test.tsx +++ b/adminfront/src/features/integrity/DataIntegrityPage.test.tsx @@ -5,8 +5,8 @@ import { deleteOrphanUserLoginIDs, fetchDataIntegrityReport, fetchMe, - fetchOrySSOTSystemStatus, fetchOrphanUserLoginIDs, + fetchOrySSOTSystemStatus, flushIdentityCache, } from "../../lib/adminApi"; import { expectNoAnonymousFormFields } from "../../test/formFieldDiagnostics"; diff --git a/adminfront/tests/worksmobile.spec.ts b/adminfront/tests/worksmobile.spec.ts index 9e3843c5..89d5ea00 100644 --- a/adminfront/tests/worksmobile.spec.ts +++ b/adminfront/tests/worksmobile.spec.ts @@ -738,6 +738,10 @@ test.describe("Worksmobile tenant management", () => { .getByRole("button", { name: "선택 구성원 WORKS에 생성" }) .click(); + await expect(page.getByText("WORKS 초기 비밀번호")).toBeVisible(); + await page.getByLabel("초기 비밀번호").fill("InitPass123!"); + await page.getByRole("button", { name: "생성 작업 등록" }).click(); + await expect(page.getByText("WORKS 생성 작업 등록 실패")).toBeVisible(); await expect( page.getByText(/WORKS API rejected user creation/), diff --git a/devfront/tests/devfront-developer-request.spec.ts b/devfront/tests/devfront-developer-request.spec.ts index a706482e..6c935a2a 100644 --- a/devfront/tests/devfront-developer-request.spec.ts +++ b/devfront/tests/devfront-developer-request.spec.ts @@ -49,7 +49,12 @@ test.describe("DevFront developer request and management", () => { await page.locator("#reason").fill("Need to test OIDC integration"); // Submit - await page.getByRole("button", { name: "신청하기", exact: true }).click(); + const submitBtn = page.getByRole("button", { + name: "신청하기", + exact: true, + }); + await submitBtn.scrollIntoViewIfNeeded(); + await submitBtn.click(); // Verify Status - Look for "Pending" or "대기" anywhere await expect(page.locator("body")).toContainText(/대기|Pending/); diff --git a/devfront/tests/devfront-security.spec.ts b/devfront/tests/devfront-security.spec.ts index 8f73fc88..7d393d36 100644 --- a/devfront/tests/devfront-security.spec.ts +++ b/devfront/tests/devfront-security.spec.ts @@ -119,7 +119,14 @@ test.describe("DevFront security and isolation", () => { await page.goto("/clients"); await expect( - page.getByText(/RP 관리자는|RP administrators can only access/i), + page.getByText( + /연동 앱 목록 접근 권한 없음|Access denied: Connected Applications/i, + ), + ).toBeVisible(); + await expect( + page.getByText( + /일반 사용자 계정은 담당 RP\(앱\)에 대한 운영 또는 관리 관계가 부여된 경우에만 해당 기능을 사용할 수 있습니다|Standard user accounts can use this feature only when an operational or administrative relationship is granted for the target application/i, + ), ).toBeVisible(); }); @@ -148,7 +155,12 @@ test.describe("DevFront security and isolation", () => { await page.goto("/audit-logs"); await expect( - page.getByText(/테넌트 관리자 권한|Tenant administrator permissions/i), + page.getByText(/감사 로그 접근 권한 없음|Access denied: Audit Logs/i), + ).toBeVisible(); + await expect( + page.getByText( + /해당 앱\(RP\)에 대한 감사 로그 조회는 운영 또는 감사 조회 관계가 부여된 경우에만 사용할 수 있습니다|Viewing audit logs for this application requires an audit read relationship/i, + ), ).toBeVisible(); });