From d30539832673da51bc59ebebf7392082f9c03547 Mon Sep 17 00:00:00 2001 From: chan Date: Wed, 18 Mar 2026 09:05:50 +0900 Subject: [PATCH] =?UTF-8?q?Playwright=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/layout/AppLayout.tsx | 9 +- .../tenants/routes/TenantCreatePage.tsx | 10 +- .../users/components/UserBulkUploadModal.tsx | 6 +- adminfront/src/lib/apiClient.ts | 5 +- adminfront/tests/auth.spec.ts | 52 +++++-- adminfront/tests/bulk_actions.spec.ts | 91 +++++++++--- adminfront/tests/owners.spec.ts | 41 ++++-- adminfront/tests/tenants.spec.ts | 132 ++++++++++++++---- adminfront/tests/users_bulk.spec.ts | 56 ++++++-- adminfront/tests/users_schema.spec.ts | 78 ++++++++--- backend/internal/handler/user_handler.go | 1 - devfront/tests/clients.spec.ts | 30 +--- devfront/tests/helpers/devfront-fixtures.ts | 25 ++++ 13 files changed, 387 insertions(+), 149 deletions(-) diff --git a/adminfront/src/components/layout/AppLayout.tsx b/adminfront/src/components/layout/AppLayout.tsx index 9a00ee10..797f6273 100644 --- a/adminfront/src/components/layout/AppLayout.tsx +++ b/adminfront/src/components/layout/AppLayout.tsx @@ -46,13 +46,16 @@ function AppLayout() { enabled: (auth.isAuthenticated && !auth.isLoading) || import.meta.env.MODE === "development" || - (window as any)._IS_TEST_MODE === true, + (window as Window & typeof globalThis & { _IS_TEST_MODE?: boolean }) + ._IS_TEST_MODE === true, }); const navItems = React.useMemo(() => { const items = [...staticNavItems]; - const isTest = (window as any)._IS_TEST_MODE === true; - + const isTest = + (window as Window & typeof globalThis & { _IS_TEST_MODE?: boolean }) + ._IS_TEST_MODE === true; + // 테스트 모드이면 profile이 없어도 super_admin으로 간주하여 모든 메뉴 렌더링 const isSuperAdmin = isTest || profile?.role === "super_admin"; const isTenantAdmin = profile?.role === "tenant_admin"; diff --git a/adminfront/src/features/tenants/routes/TenantCreatePage.tsx b/adminfront/src/features/tenants/routes/TenantCreatePage.tsx index c6ad4e93..c8c21e89 100644 --- a/adminfront/src/features/tenants/routes/TenantCreatePage.tsx +++ b/adminfront/src/features/tenants/routes/TenantCreatePage.tsx @@ -109,7 +109,10 @@ function TenantCreatePage() { name="name" value={name} onChange={(e) => setName(e.target.value)} - placeholder={t("ui.admin.tenants.create.form.name_placeholder", "테넌트 이름을 입력하세요")} + placeholder={t( + "ui.admin.tenants.create.form.name_placeholder", + "테넌트 이름을 입력하세요", + )} />
@@ -183,7 +186,10 @@ function TenantCreatePage() { />
-