mirror of
https://github.com/bringout/oca-ocb-web.git
synced 2026-04-18 18:12:02 +02:00
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
18 lines
872 B
JavaScript
18 lines
872 B
JavaScript
import { setupHTMLBuilder } from "@html_builder/../tests/helpers";
|
|
import { expect, test, describe } from "@odoo/hoot";
|
|
|
|
describe.current.tags("desktop");
|
|
|
|
test("section with containers should not be contenteditable, but there containers should, unless outside o_editable", async () => {
|
|
await setupHTMLBuilder(
|
|
`<section><div class="container"><span class="inside">in</span></div></section>`,
|
|
{
|
|
headerContent: `<section><div class="container"><span class="outside">out</span></div></section>`,
|
|
}
|
|
);
|
|
expect(":iframe section:has(.inside)").toHaveProperty("isContentEditable", false);
|
|
expect(":iframe .inside").toHaveProperty("isContentEditable", true);
|
|
|
|
expect(":iframe section:has(.outside)").toHaveProperty("isContentEditable", false);
|
|
expect(":iframe .outside").toHaveProperty("isContentEditable", false);
|
|
});
|