feat: WYSIWYG 빌더 1차 기능 완성 및 테스트 추가
This commit is contained in:
@@ -71,8 +71,10 @@ describe('Canvas + Moveable events', () => {
|
||||
await act(async () => { last.onResize?.({ width: 83, height: 13 }) })
|
||||
const obj = screen.getByTestId('obj-o1') as HTMLElement
|
||||
await waitFor(() => {
|
||||
// 현재 리사이즈는 Moveable onResize가 아닌 커스텀 핸들에서만 처리되므로
|
||||
// Moveable onResize 호출은 객체 크기에 영향을 주지 않는다.
|
||||
expect(obj.style.width).toBe('80px')
|
||||
expect(obj.style.height).toBe('16px')
|
||||
expect(obj.style.height).toBe('30px')
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user