oca-ocb-web/odoo-bringout-oca-ocb-html_editor/html_editor/static/tests/comment.test.js
Ernad Husremovic f866779561 replace stale web_editor with html_editor and html_builder for 19.0
web_editor was removed in Odoo 19.0 and replaced by html_editor
and html_builder. The old web_editor was incorrectly included in
the 19.0 vanilla import.

🤖 assisted by claude
2026-03-09 15:31:13 +01:00

13 lines
445 B
JavaScript

import { test } from "@odoo/hoot";
import { testEditor } from "./_helpers/editor";
test("should remove comment node inside editable content during sanitize", async () => {
await testEditor({
contentBefore: "<p>ab<!-- comment -->cd</p>",
contentAfter: "<p>abcd</p>",
});
await testEditor({
contentBefore: "<p>ab<!-- comment -->cd<!-- Another comment --></p>",
contentAfter: "<p>abcd</p>",
});
});