[FIX] *: adapt QUnit tests and tours
[FIX] *: selectors in tours [FIX][TMP] account: CogMenu selector in tours [FIX][TMP] web*: Breadcrumb targetting in tours Adds a `o_breadcrumb` class to target the whole breadcrumb, no matter how much elements it contains (collapsed parts, visible path, single name...). add classname on last breadcrumb item [FIX][TMP] project: View buttons selector in tours (moved away from CP) [FIX][TMP] project: Kanban selectors in tours (quick create) [FIX][TMP] *: SearchBar selectors in tours (toggle menu) [FIX][TMP] *: ButtonBox selector in tours [WIP][IMP] web: add toggleSearchBarMenu in search helpers adapt and unskip 3 list tests adapt and unskip calendar tests unskip web_tour test that actually pass post rebase fix allow to lose cell focus after multi edition (given to searchbar) - bug reported, to check later post rebase fixes fix Part-of: odoo/odoo#116641
This commit is contained in:
@@ -214,22 +214,22 @@ QUnit.test("many2many_avatar_employee widget in form view", async function (asse
|
||||
});
|
||||
assert.containsN(
|
||||
document.body,
|
||||
".o_field_many2many_avatar_employee .badge",
|
||||
".o_field_many2many_avatar_employee .o_tag",
|
||||
2,
|
||||
"should have 2 records"
|
||||
);
|
||||
assert.strictEqual(
|
||||
document
|
||||
.querySelector(".o_field_many2many_avatar_employee .badge img")
|
||||
.querySelector(".o_field_many2many_avatar_employee .o_tag img")
|
||||
.getAttribute("data-src"),
|
||||
`/web/image/hr.employee.public/${employeeId_1}/avatar_128`
|
||||
);
|
||||
|
||||
await dom.click(
|
||||
document.querySelector(".o_field_many2many_avatar_employee .badge .o_m2m_avatar")
|
||||
document.querySelector(".o_field_many2many_avatar_employee .o_tag .o_m2m_avatar")
|
||||
);
|
||||
await dom.click(
|
||||
document.querySelectorAll(".o_field_many2many_avatar_employee .badge .o_m2m_avatar")[1]
|
||||
document.querySelectorAll(".o_field_many2many_avatar_employee .o_tag .o_m2m_avatar")[1]
|
||||
);
|
||||
assert.verifySteps([
|
||||
`read m2x.avatar.employee ${avatarId_1}`,
|
||||
@@ -413,19 +413,19 @@ QUnit.test(
|
||||
res_id: avatarId,
|
||||
views: [[false, "form"]],
|
||||
});
|
||||
assert.containsN(document.body, ".o_field_many2many_avatar_employee .badge", 2);
|
||||
assert.containsN(document.body, ".o_field_many2many_avatar_employee .o_tag", 2);
|
||||
assert.strictEqual(
|
||||
document
|
||||
.querySelector(".o_field_many2many_avatar_employee .badge img")
|
||||
.querySelector(".o_field_many2many_avatar_employee .o_tag img")
|
||||
.getAttribute("data-src"),
|
||||
`/web/image/hr.employee.public/${employeeId_1}/avatar_128`
|
||||
);
|
||||
|
||||
await dom.click(
|
||||
document.querySelector(".o_field_many2many_avatar_employee .badge .o_m2m_avatar")
|
||||
document.querySelector(".o_field_many2many_avatar_employee .o_tag .o_m2m_avatar")
|
||||
);
|
||||
await dom.click(
|
||||
document.querySelectorAll(".o_field_many2many_avatar_employee .badge .o_m2m_avatar")[1]
|
||||
document.querySelectorAll(".o_field_many2many_avatar_employee .o_tag .o_m2m_avatar")[1]
|
||||
);
|
||||
assert.verifySteps([
|
||||
`read m2x.avatar.employee ${employeeId_1}`,
|
||||
|
||||
Reference in New Issue
Block a user