1
0
forked from baron/baron-sso

chore: update playwright fixtures to use real SSO domain

Since the OIDC authority was updated to https://sso.hmac.kr/oidc, the Playwright mocks and localStorage seed values must match exactly for tests to pass in the new configuration.
This commit is contained in:
2026-04-21 15:02:53 +09:00
parent e7156450ba
commit ae03fe1475
8 changed files with 37 additions and 37 deletions

View File

@@ -3,7 +3,7 @@ import { expect, test } from "@playwright/test";
test.describe("User Management", () => {
test.beforeEach(async ({ page }) => {
await page.addInitScript(() => {
const authority = "http://localhost:5000/oidc";
const authority = "https://sso.hmac.kr/oidc";
const client_id = "adminfront";
const key = `oidc.user:${authority}:${client_id}`;
const authData = {
@@ -33,15 +33,15 @@ test.describe("User Management", () => {
if (route.request().url().includes("/.well-known/openid-configuration")) {
return route.fulfill({
json: {
issuer: "http://localhost:5000/oidc",
authorization_endpoint: "http://localhost:5000/oidc/auth",
token_endpoint: "http://localhost:5000/oidc/token",
userinfo_endpoint: "http://localhost:5000/oidc/userinfo",
jwks_uri: "http://localhost:5000/oidc/jwks",
issuer: "https://sso.hmac.kr/oidc",
authorization_endpoint: "https://sso.hmac.kr/oidc/auth",
token_endpoint: "https://sso.hmac.kr/oidc/token",
userinfo_endpoint: "https://sso.hmac.kr/oidc/userinfo",
jwks_uri: "https://sso.hmac.kr/oidc/jwks",
},
});
}
await route.fulfill({ json: { issuer: "http://localhost:5000/oidc" } });
await route.fulfill({ json: { issuer: "https://sso.hmac.kr/oidc" } });
});
await page.route(/.*\/api\/v1\/.*/, async (route) => {