forked from baron/baron-sso
code-check 및 사용자 상세 claim 관련 오류 수정
This commit is contained in:
@@ -315,7 +315,7 @@ test.describe("User Management", () => {
|
||||
await expect(page.getByText(/저장/i).first()).toBeVisible();
|
||||
});
|
||||
|
||||
test("should manage global custom claim permissions in user detail", async ({
|
||||
test("should manage global custom claim values in user detail", async ({
|
||||
page,
|
||||
}) => {
|
||||
let updatePayload: Record<string, unknown> | undefined;
|
||||
@@ -375,19 +375,14 @@ test.describe("User Management", () => {
|
||||
.getByRole("tab", { name: /전역 Custom Claims|Custom Claims/i })
|
||||
.click();
|
||||
|
||||
await expect(
|
||||
page.getByTestId("global-custom-claim-key-contract_date"),
|
||||
).toHaveValue("contract_date");
|
||||
await expect(
|
||||
page.getByTestId("global-custom-claim-read-permission-contract_date"),
|
||||
).toHaveValue("user_and_admin");
|
||||
await expect(
|
||||
page.getByTestId("global-custom-claim-write-permission-contract_date"),
|
||||
).toHaveValue("admin_only");
|
||||
await expect(page.getByText("contract_date")).toBeVisible();
|
||||
const valueInput = page.getByTestId(
|
||||
"global-custom-claim-value-contract_date",
|
||||
);
|
||||
await expect(valueInput).toHaveValue("2026-06-09");
|
||||
await expect(valueInput).toHaveAttribute("type", "date");
|
||||
|
||||
await page
|
||||
.getByTestId("global-custom-claim-write-permission-contract_date")
|
||||
.selectOption("user_and_admin");
|
||||
await valueInput.fill("2026-07-01");
|
||||
|
||||
await page.screenshot({
|
||||
path: "test-results/adminfront-global-custom-claim-permissions.png",
|
||||
@@ -403,15 +398,15 @@ test.describe("User Management", () => {
|
||||
.toMatchObject({
|
||||
metadata: {
|
||||
global_custom_claims: {
|
||||
contract_date: "2026-06-09",
|
||||
contract_date: "2026-07-01",
|
||||
},
|
||||
global_custom_claim_types: {
|
||||
contract_date: "date",
|
||||
},
|
||||
global_custom_claim_permissions: {
|
||||
contract_date: {
|
||||
readPermission: "user_and_admin",
|
||||
writePermission: "user_and_admin",
|
||||
readPermission: "admin_only",
|
||||
writePermission: "admin_only",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user