에디터 인라인/속성 패널 리팩터링 및 폼 전송 기본 기능 추가
CI / pr_and_merge (push) Blocked by required conditions
CI / test (push) Has been cancelled

This commit is contained in:
2025-11-20 00:53:39 +09:00
parent 211b0f8230
commit a6ef5f01cd
29 changed files with 3371 additions and 1052 deletions
+21
View File
@@ -25,6 +25,27 @@ describe("editorStore", () => {
expect(selectedBlockId).toBe(blocks[0].id);
});
it("텍스트 블록에 글자 간격(letterSpacingCustom)을 em 단위로 설정할 수 있어야 한다", () => {
const store = createEditorStore();
store.getState().addTextBlock();
const { blocks } = store.getState();
const textBlock = blocks[0];
const textProps = textBlock.props as TextBlockProps;
expect(textProps.letterSpacingCustom).toBeUndefined();
store.getState().updateBlock(textBlock.id, {
letterSpacingCustom: "0.05em",
} as any);
const { blocks: updatedBlocks } = store.getState();
const updatedTextProps = updatedBlocks[0].props as TextBlockProps;
expect(updatedTextProps.letterSpacingCustom).toBe("0.05em");
});
it("구분선 블록을 추가하면 기본 align/thickness 와 함께 추가되고 선택되어야 한다", () => {
const store = createEditorStore();