[REF] mail,*: adapt code to owl 2
*im_livechat,sms,snailmail Owl 2 changelog: https://github.com/odoo/owl/blob/a9f29c4caad4f32d06be1ec4780572825781cd9b/CHANGELOG.md Part-of: odoo/odoo#80156 Co-authored-by: Aaron Bohy <aab@odoo.com> Co-authored-by: Bruno Boi <boi@odoo.com> Co-authored-by: Géry Debongnie <ged@odoo.com> Co-authored-by: Samuel Degueldre <sad@odoo.com> Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com> Co-authored-by: Simon Genin (ges) <ges@odoo.com> Co-authored-by: Francois (fge) <fge@odoo.com> Co-authored-by: Michael Mattiello (mcm) <mcm@odoo.com> Co-authored-by: Julien Mougenot <jum@odoo.com> Co-authored-by: luvi <luvi@odoo.com> Co-authored-by: Lucas Perais (lpe) <lpe@odoo.com> Co-authored-by: Jorge Pinna Puissant <jpp@odoo.com>
This commit is contained in:
co-authored by
Aaron Bohy
Bruno Boi
Géry Debongnie
Mathieu Duckerts-Antoine
Simon Genin
Francois
Michael Mattiello
Julien Mougenot
luvi
Lucas Perais
Jorge Pinna Puissant
parent
0c7910529d
commit
edd79ff560
@@ -1,7 +1,7 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import { manageMessages } from "@mail/js/tools/debug_manager";
|
||||
import { click, legacyExtraNextTick, patchWithCleanup } from "@web/../tests/helpers/utils";
|
||||
import { click, getFixture, legacyExtraNextTick, patchWithCleanup } from "@web/../tests/helpers/utils";
|
||||
import { createWebClient, doAction, getActionManagerServerData } from "@web/../tests/webclient/helpers";
|
||||
import { registry } from "@web/core/registry";
|
||||
|
||||
@@ -37,12 +37,13 @@ QUnit.test("Manage Messages", async function (assert) {
|
||||
}
|
||||
}
|
||||
|
||||
const target = getFixture();
|
||||
const wc = await createWebClient({ serverData, mockRPC });
|
||||
await doAction(wc, 3, { viewType: "form", props: { resId: 5 } });
|
||||
await legacyExtraNextTick();
|
||||
await click(wc.el, ".o_debug_manager .dropdown-toggle");
|
||||
await click(target, ".o_debug_manager .dropdown-toggle");
|
||||
|
||||
const dropdownItems = wc.el.querySelectorAll(
|
||||
const dropdownItems = target.querySelectorAll(
|
||||
".o_debug_manager .dropdown-menu .dropdown-item"
|
||||
);
|
||||
assert.strictEqual(dropdownItems.length, 1);
|
||||
@@ -56,7 +57,7 @@ QUnit.test("Manage Messages", async function (assert) {
|
||||
await legacyExtraNextTick();
|
||||
|
||||
assert.strictEqual(
|
||||
wc.el.querySelector(".breadcrumb-item.active").innerText.trim(),
|
||||
target.querySelector(".breadcrumb-item.active").innerText.trim(),
|
||||
"Manage Messages"
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user