mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:39:05 +08:00
富文本单测
This commit is contained in:
parent
6389a43f67
commit
a6bbee1281
@ -55,12 +55,14 @@ test('2. change event', async () => {
|
||||
)
|
||||
);
|
||||
|
||||
const rich = container.querySelector('.cxd-RichTextControl')!;
|
||||
const frame = container
|
||||
.querySelector('.cxd-RichTextControl')
|
||||
?.querySelector('.tox-edit-area__iframe')!;
|
||||
|
||||
fireEvent.change(
|
||||
rich
|
||||
.querySelector('.tox-edit-area__iframe')
|
||||
?.contentWindow.document.body.querySelector('p'),
|
||||
(frame as HTMLIFrameElement)?.contentWindow?.document.body.querySelector(
|
||||
'p'
|
||||
)!,
|
||||
{
|
||||
target: {value: 9}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user