mirror of https://github.com/OCA/web.git
[FIX] make base odoo JS tests working with web_responsive module
parent
fb5d709dd5
commit
7e2ee0909b
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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",
|
||||
};
|
||||
},
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue