update wysiwyg

This commit is contained in:
Juergen Kunz
2025-06-27 19:29:26 +00:00
parent 24957f02d4
commit 03f25b7f10
3 changed files with 7 additions and 25 deletions

View File

@ -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');