[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:
Pierre Paridans
2023-05-12 22:59:22 +02:00
parent 3aaa0bfff1
commit eef262abf4
112 changed files with 3673 additions and 2329 deletions
@@ -19,6 +19,11 @@ import { makeFakeUserService } from "../../helpers/mock_services";
const serviceRegistry = registry.category("services");
async function exportAllAction(target) {
await click(target, ".o_cp_action_menus .dropdown-toggle");
await click(target, ".o_cp_action_menus .dropdown-item");
}
QUnit.module("ViewDialogs", (hooks) => {
let serverData;
let target;
@@ -947,7 +952,7 @@ QUnit.module("ViewDialogs", (hooks) => {
domain: [["bar", "!=", "glou"]],
});
await click(target.querySelector(".o_list_export_xlsx"));
await exportAllAction(target);
});
QUnit.test("Direct export grouped list ", async function (assert) {
@@ -999,7 +1004,7 @@ QUnit.module("ViewDialogs", (hooks) => {
domain: [["bar", "!=", "glou"]],
});
await click(target.querySelector(".o_list_export_xlsx"));
await exportAllAction(target);
});
QUnit.test("Export dialog with duplicated fields", async function (assert) {
@@ -19,8 +19,7 @@ import {
editFavoriteName,
removeFacet,
saveFavorite,
toggleFavoriteMenu,
toggleFilterMenu,
toggleSearchBarMenu,
toggleMenuItem,
toggleSaveFavorite,
} from "@web/../tests/search/helpers";
@@ -401,13 +400,12 @@ QUnit.module("ViewDialogs", (hooks) => {
assert.containsN(target, ".o_data_row", 3, "should contain 3 records");
// filter on bar
await toggleFilterMenu(target);
await toggleSearchBarMenu(target);
await toggleMenuItem(target, "Bar");
assert.containsN(target, ".o_data_row", 2, "should contain 2 records");
// save filter
await toggleFavoriteMenu(target);
await toggleSaveFavorite(target);
await editFavoriteName(target, "some name");
await saveFavorite(target);