forked from Techsystech/web
[FIX] make base odoo JS tests working with web_responsive module
parent
7441e79dc9
commit
071df67c79
|
@ -48,6 +48,9 @@
|
||||||
"/web_responsive/static/src/components/attachment_viewer/attachment_viewer.xml",
|
"/web_responsive/static/src/components/attachment_viewer/attachment_viewer.xml",
|
||||||
"/web_responsive/static/src/components/hotkey/hotkey.xml",
|
"/web_responsive/static/src/components/hotkey/hotkey.xml",
|
||||||
],
|
],
|
||||||
|
"web.assets_tests": [
|
||||||
|
"/web_responsive/static/tests/test_patch.js",
|
||||||
|
],
|
||||||
},
|
},
|
||||||
"sequence": 1,
|
"sequence": 1,
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,8 +15,10 @@
|
||||||
top: $o-navbar-height !important;
|
top: $o-navbar-height !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We can't use display: none here because of tests
|
||||||
.o_first_app .o_navbar_apps_menu .dropdown-toggle {
|
.o_first_app .o_navbar_apps_menu .dropdown-toggle {
|
||||||
display: none;
|
z-index: -1;
|
||||||
|
cursor: default;
|
||||||
}
|
}
|
||||||
.o_apps_menu_opened .o_main_navbar {
|
.o_apps_menu_opened .o_main_navbar {
|
||||||
.o_menu_brand,
|
.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