update wysiwyg
This commit is contained in:
@ -72,22 +72,11 @@ tap.test('should change block type via context menu', async () => {
|
||||
);
|
||||
expect(heading1Item).toBeTruthy();
|
||||
|
||||
// Add debug logging
|
||||
console.log('Before click:', {
|
||||
blockType: wysiwygEditor.blocks[0].type,
|
||||
blockId: wysiwygEditor.blocks[0].id
|
||||
});
|
||||
|
||||
// Click on "Heading 1"
|
||||
(heading1Item as HTMLElement).click();
|
||||
|
||||
// Wait for menu to close and block to update
|
||||
await new Promise(resolve => setTimeout(resolve, 500));
|
||||
|
||||
console.log('After click:', {
|
||||
blockType: wysiwygEditor.blocks[0].type,
|
||||
blockId: wysiwygEditor.blocks[0].id
|
||||
});
|
||||
await new Promise(resolve => setTimeout(resolve, 300));
|
||||
|
||||
// Verify block type has changed
|
||||
expect(wysiwygEditor.blocks[0].type).toEqual('heading-1');
|
||||
|
Reference in New Issue
Block a user