From 2ee1ee4037ec17bd787e34ead625da52e7142fdd Mon Sep 17 00:00:00 2001 From: kyy Date: Thu, 23 Apr 2026 16:49:11 +0900 Subject: [PATCH] =?UTF-8?q?dev=20=EB=B3=91=ED=95=A9=20code-check=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 --- devfront/tests/helpers/devfront-fixtures.ts | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/devfront/tests/helpers/devfront-fixtures.ts b/devfront/tests/helpers/devfront-fixtures.ts index 5b62f1c2..3f6ff964 100644 --- a/devfront/tests/helpers/devfront-fixtures.ts +++ b/devfront/tests/helpers/devfront-fixtures.ts @@ -156,14 +156,22 @@ export async function seedAuth(page: Page, role?: string) { expires_at: issuedAt + 3600, }; - window.localStorage.setItem( + const storageKeys = [ + "user:http://localhost:5000/oidc:devfront", + "user:http://localhost:5000/oidc/:devfront", + "user:https://sso-test.hmac.kr/oidc:devfront", + "user:https://sso-test.hmac.kr/oidc/:devfront", "oidc.user:http://localhost:5000/oidc:devfront", - JSON.stringify(mockOidcUser), - ); - window.localStorage.setItem( "oidc.user:http://localhost:5000/oidc/:devfront", - JSON.stringify(mockOidcUser), - ); + "oidc.user:https://sso-test.hmac.kr/oidc:devfront", + "oidc.user:https://sso-test.hmac.kr/oidc/:devfront", + ]; + + for (const key of storageKeys) { + window.localStorage.setItem(key, JSON.stringify(mockOidcUser)); + window.sessionStorage.setItem(key, JSON.stringify(mockOidcUser)); + } + window.localStorage.setItem("dev_role", injectedRole || "rp_admin"); window.localStorage.setItem("dev_tenant_id", "tenant-a"); },