[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:
@@ -14,6 +14,7 @@ import {
|
||||
} from "@web/../tests/helpers/utils";
|
||||
import { doAction } from "@web/../tests/webclient/helpers";
|
||||
import { session } from "@web/session";
|
||||
import { toggleSearchBarMenu } from "@web/../tests/search/helpers";
|
||||
|
||||
let serverData;
|
||||
let pyEnv;
|
||||
@@ -511,19 +512,19 @@ QUnit.module("test_mail", {}, function () {
|
||||
const { webClient } = await start({ serverData, mockRPC });
|
||||
|
||||
await doAction(webClient, 1);
|
||||
|
||||
await toggleSearchBarMenu(document);
|
||||
assert.containsN(
|
||||
document.body,
|
||||
".o_search_options .dropdown button:visible",
|
||||
".o_cp_searchview .o_dropdown_container",
|
||||
2,
|
||||
"only two elements should be available in view search"
|
||||
);
|
||||
assert.isVisible(
|
||||
document.querySelector(".o_search_options .dropdown.o_filter_menu > button"),
|
||||
document.querySelector(".o_cp_searchview .o_dropdown_container.o_filter_menu"),
|
||||
"filter should be available in view search"
|
||||
);
|
||||
assert.isVisible(
|
||||
document.querySelector(".o_search_options .dropdown.o_favorite_menu > button"),
|
||||
document.querySelector(".o_cp_searchview .o_dropdown_container.o_favorite_menu"),
|
||||
"favorites should be available in view search"
|
||||
);
|
||||
});
|
||||
|
||||
@@ -15,7 +15,7 @@ QUnit.test(
|
||||
const o_view_controller = document.querySelector(".o_view_controller");
|
||||
const o_content = o_view_controller.querySelector(".o_content");
|
||||
const o_cp_item = o_view_controller.querySelector(
|
||||
".o_control_panel .breadcrumb-item.active"
|
||||
".o_control_panel .o_breadcrumb .active"
|
||||
);
|
||||
const initialXCpItem = o_cp_item.getBoundingClientRect().x;
|
||||
const o_header_cell = o_content.querySelector(".o_activity_type_cell");
|
||||
|
||||
Reference in New Issue
Block a user