import { expect, test } from "@odoo/hoot"; import { queryAllTexts } from "@odoo/hoot-dom"; import { animationFrame } from "@odoo/hoot-mock"; import { Component, xml } from "@odoo/owl"; import { getService, mountWithCleanup } from "@web/../tests/web_test_helpers"; import { registry } from "@web/core/registry"; import "@web/public/public_component_service"; const publicComponentRegistry = registry.category("public_components"); test(`render Public Component`, async () => { class MyPublicComp extends Component { static template = xml`
`; static props = ["*"]; setup() { const { info } = this.props; this.value = typeof info === "object" ? JSON.stringify(info) : info; expect.step(`MyPublicComp: ${this.value} - ${typeof info}`); } } publicComponentRegistry.add("my_public_comp", MyPublicComp); class MyComponent extends Component { static template = xml`