forked from baron/baron-sso
code-check 오류 수정
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user