feat: WYSIWYG 전용 경로 추가(/[locale]/wysiwyg) 및 샘플 페이지/테스트 구현
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { describe, it, expect } from 'vitest'
|
||||
import { render, screen } from '@testing-library/react'
|
||||
import { WysiwygPage } from '@/components/wysiwyg/WysiwygPage'
|
||||
|
||||
describe('WysiwygPage', () => {
|
||||
it('renders Canvas with a sample frame and aria-live region', () => {
|
||||
render(<WysiwygPage />)
|
||||
const canvas = screen.getByTestId('wysiwyg-canvas')
|
||||
expect(canvas).toBeInTheDocument()
|
||||
// at least one object is present
|
||||
expect(screen.getByTestId('obj-o1')).toBeInTheDocument()
|
||||
// a11y live region exists
|
||||
expect(screen.getByTestId('aria-live')).toBeInTheDocument()
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user