1차 싱크 완료
This commit is contained in:
@@ -44,15 +44,22 @@ describe("SectionPropertiesPanel - layout presets", () => {
|
||||
|
||||
render(
|
||||
<SectionPropertiesPanel
|
||||
sectionProps={baseProps}
|
||||
sectionProps={{
|
||||
...baseProps,
|
||||
columns: [
|
||||
{ id: "col-1", span: 6 },
|
||||
{ id: "col-2", span: 6 },
|
||||
],
|
||||
}}
|
||||
selectedBlockId="section-layout-2"
|
||||
updateBlock={updateBlock}
|
||||
/>,
|
||||
);
|
||||
|
||||
const input = screen.getByLabelText("1열 폭 (1~12)");
|
||||
const inputs = screen.getAllByLabelText("1열 폭 (1~11)");
|
||||
const numberInput = inputs.find((el) => (el as HTMLInputElement).tagName === "INPUT" && (el as HTMLInputElement).type === "number") as HTMLInputElement;
|
||||
|
||||
fireEvent.change(input, { target: { value: "8" } });
|
||||
fireEvent.change(numberInput, { target: { value: "8" } });
|
||||
|
||||
expect(updateBlock).toHaveBeenCalledWith(
|
||||
"section-layout-2",
|
||||
|
||||
Reference in New Issue
Block a user