테스트 오류 수정
CI / test (push) Successful in 5m19s
CI / e2e (push) Has been skipped
CI / pr_and_merge (push) Successful in 1m59s

This commit is contained in:
2025-12-09 20:20:47 +09:00
parent 676e58cad7
commit 23a08621db
3 changed files with 43 additions and 62 deletions
+3 -2
View File
@@ -70,8 +70,9 @@ describe("ColorPickerField - 테마", () => {
expect(toggleButton).not.toBeNull(); expect(toggleButton).not.toBeNull();
fireEvent.click(toggleButton!); fireEvent.click(toggleButton!);
// 팔레트 첫 항목("기본") 버튼을 찾는다 // 팔레트 첫 항목 버튼을 찾는다 (TEXT_COLOR_PALETTE[0] 라벨과 동기화)
const itemButton = screen.getByRole("button", { name: "기본" }) as HTMLButtonElement; const firstItem = TEXT_COLOR_PALETTE[0];
const itemButton = screen.getByRole("button", { name: firstItem.label }) as HTMLButtonElement;
const className = itemButton.getAttribute("class") ?? ""; const className = itemButton.getAttribute("class") ?? "";
// 라이트 모드: 흰 배경 + 어두운 텍스트 // 라이트 모드: 흰 배경 + 어두운 텍스트
+2 -2
View File
@@ -144,7 +144,7 @@ describe("PropertiesSidebar HELP 튜토리얼 모달", () => {
expect(className).toContain("dark:bg-slate-950/40"); expect(className).toContain("dark:bg-slate-950/40");
}); });
it("속성 패널 루트는 pb-scroll 커스텀 스크롤바 클래스를 사용하지 않아야 한다", () => { it("속성 패널 루트는 pb-scroll 커스텀 스크롤바 클래스를 사용해 에디터용 스크롤바 테마를 적용해야 한다", () => {
const props = defaultProps([], null); const props = defaultProps([], null);
render(<PropertiesSidebar {...props} />); render(<PropertiesSidebar {...props} />);
@@ -152,6 +152,6 @@ describe("PropertiesSidebar HELP 튜토리얼 모달", () => {
const aside = screen.getByTestId("properties-sidebar") as HTMLElement; const aside = screen.getByTestId("properties-sidebar") as HTMLElement;
const className = aside.getAttribute("class") ?? ""; const className = aside.getAttribute("class") ?? "";
expect(className).not.toContain("pb-scroll"); expect(className).toContain("pb-scroll");
}); });
}); });
@@ -456,26 +456,6 @@ options: [
], ],
} as any, } as any,
}, },
];
type: "form",
props: {
kind: "contact",
submitTarget: "internal",
requiredFieldIds: ["radio_required"],
} as any,
},
{
id: "radio_required",
type: "formRadio",
props: {
groupLabel: "플랜",
formFieldName: "plan",
options: [
{ label: "A", value: "a" },
{ label: "B", value: "b" },
],
} as any,
},
]; ];
const { getByTestId } = render(<PublicPageRenderer blocks={blocks} />); const { getByTestId } = render(<PublicPageRenderer blocks={blocks} />);