1
0
forked from baron/baron-sso

code-check 오류 수정

This commit is contained in:
2026-03-25 17:51:29 +09:00
parent ced369cdbc
commit 31b4e6b5f3
10 changed files with 864 additions and 868 deletions

View File

@@ -8,6 +8,8 @@ import {
} from "./helpers/devfront-fixtures";
import { captureEvidence } from "./helpers/evidence";
const appNamePlaceholder = /My Awesome Application|예: 멋진 애플리케이션/i;
test.describe("DevFront role report", () => {
test.beforeEach(async ({ page }) => {
page.on("dialog", async (dialog) => {
@@ -91,7 +93,7 @@ test.describe("DevFront role report", () => {
await page.goto("/clients/tenant-a-app-1/settings");
await page
.getByPlaceholder("My Awesome Application")
.getByPlaceholder(appNamePlaceholder)
.fill("Tenant A CRM Updated");
const updatePromise = page.waitForResponse(
@@ -132,7 +134,7 @@ test.describe("DevFront role report", () => {
await page.goto("/clients/new");
await page
.getByPlaceholder("My Awesome Application")
.getByPlaceholder(appNamePlaceholder)
.fill("Super Admin Created App");
await page
.getByPlaceholder(/https:\/\/app\.example\.com\/callback/i)
@@ -145,6 +147,17 @@ test.describe("DevFront role report", () => {
);
await page.getByRole("button", { name: /앱 생성|Create/i }).click();
await createPromise;
await expect
.poll(() =>
state.auditLogs.some((item) => {
try {
return JSON.parse(item.details)?.action === "CREATE_CLIENT";
} catch {
return false;
}
}),
)
.toBe(true);
await page.goto("/audit-logs");
await expect(page.getByText("CREATE_CLIENT")).toBeVisible({