[FIX] make base odoo JS tests working with web_responsive module

pull/2684/head
Sergey Shebanin 2022-01-23 18:53:52 +03:00 committed by Taras Shabaranskyi
parent fb5d709dd5
commit 7e2ee0909b
3 changed files with 25 additions and 1 deletions

View File

@ -48,6 +48,9 @@
"/web_responsive/static/src/components/attachment_viewer/attachment_viewer.xml",
"/web_responsive/static/src/components/hotkey/hotkey.xml",
],
"web.assets_tests": [
"/web_responsive/static/tests/test_patch.js",
],
},
"sequence": 1,
}

View File

@ -15,8 +15,10 @@
top: $o-navbar-height !important;
}
// We can't use display: none here because of tests
.o_first_app .o_navbar_apps_menu .dropdown-toggle {
display: none;
z-index: -1;
cursor: default;
}
.o_apps_menu_opened .o_main_navbar {
.o_menu_brand,

View File

@ -0,0 +1,19 @@
/* Copyright 2021 ITerra - Sergey Shebanin
* License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */
odoo.define("web_responsive.test_patch", function (require) {
"use strict";
const utils = require("web_tour.TourStepUtils");
/* Make base odoo JS tests working */
utils.include({
showAppsMenuItem() {
return {
edition: "community",
trigger: ".o_navbar_apps_menu",
auto: true,
position: "bottom",
};
},
});
});