1
0
forked from baron/baron-sso

Playwright 테스트 오류 수정

This commit is contained in:
2026-03-18 09:05:50 +09:00
parent ec8abf39aa
commit d305398326
13 changed files with 387 additions and 149 deletions

View File

@@ -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";