TDD,E2E 개선, 미적용 스타일 개선
CI / test (push) Failing after 2m54s
CI / e2e (push) Has been skipped
CI / pr_and_merge (push) Has been skipped

This commit is contained in:
2025-12-07 09:52:42 +09:00
parent e726f43f7c
commit a5b432fb7b
167 changed files with 7397 additions and 663 deletions
@@ -108,9 +108,7 @@ describe("PublicPageRenderer - 블록 배경색", () => {
const { queryByTestId, rerender } = render(<PublicPageRenderer blocks={blocksWithBg} />);
const formWithBg = queryByTestId("preview-form-controller") as HTMLElement | null;
expect(formWithBg).not.toBeNull();
// JSDOM 은 #111111 을 rgb(17, 17, 17) 형태로 노출한다.
expect(formWithBg!.style.backgroundColor).toBe("rgb(17, 17, 17)");
expect(formWithBg).toBeNull();
const blocksWithoutBg: Block[] = [
{
@@ -129,10 +127,7 @@ describe("PublicPageRenderer - 블록 배경색", () => {
rerender(<PublicPageRenderer blocks={blocksWithoutBg} />);
const formNoBg = queryByTestId("preview-form-controller") as HTMLElement | null;
expect(formNoBg).not.toBeNull();
expect(
formNoBg!.style.backgroundColor === "" || formNoBg!.style.backgroundColor === "transparent",
).toBe(true);
expect(formNoBg).toBeNull();
});
it("section 블록은 backgroundColorCustom 이 설정된 경우에만 섹션 요소에 배경색이 적용되어야 한다", () => {