Skip to content

Commit 786da5e

Browse files
committed
[18.0][FIX] web_responsive: Fix tests in project
1 parent fd8c411 commit 786da5e

File tree

4 files changed

+24
-17
lines changed

4 files changed

+24
-17
lines changed

test-requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
odoo-test-helper
2+
odoo-addon-web_pivot_computed_measure@git+https://github.com/OCA/web.git@refs/pull/3038/head#subdirectory=web_pivot_computed_measure

web_responsive/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"Odoo Community Association (OCA)",
1717
"license": "LGPL-3",
1818
"installable": True,
19-
"depends": ["web", "mail"],
19+
"depends": ["web", "web_tour", "mail"],
2020
"development_status": "Production/Stable",
2121
"maintainers": ["Tardo", "SplashS"],
2222
"excludes": ["web_enterprise"],

web_responsive/static/src/components/apps_menu/apps_menu.esm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export class AppsMenu extends Component {
147147
}
148148
const {href, hash} = location;
149149
const menuId = this.router.current.menu_id;
150-
if (menuId && menuId != redirect_menuId) {
150+
if (menuId && menuId !== redirect_menuId) {
151151
browser.localStorage.setItem(
152152
"redirect_menuId",
153153
this.router.current.menu_id
+21-15
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
/* Copyright 2021 ITerra - Sergey Shebanin
2+
* Copyright 2025 Carlos Lopez - Tecnativa
23
* License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */
3-
odoo.define("web_responsive.test_patch", function (require) {
4-
"use strict";
4+
odoo.define(
5+
"web_responsive.test_patch",
6+
["@web_tour/tour_service/tour_utils", "@web/core/utils/patch"],
7+
function (require) {
8+
"use strict";
59

6-
const utils = require("web_tour.TourStepUtils");
10+
const {stepUtils} = require("@web_tour/tour_service/tour_utils");
11+
const {patch} = require("@web/core/utils/patch");
712

8-
/* Make base odoo JS tests working */
9-
utils.include({
10-
showAppsMenuItem() {
11-
return {
12-
edition: "community",
13-
trigger: ".o_navbar_apps_menu",
14-
auto: true,
15-
position: "bottom",
16-
};
17-
},
18-
});
19-
});
13+
patch(stepUtils, {
14+
/* Make base odoo JS tests working */
15+
showAppsMenuItem() {
16+
return {
17+
edition: "community",
18+
trigger: "button.o_grid_apps_menu__button",
19+
auto: true,
20+
position: "bottom",
21+
};
22+
},
23+
});
24+
}
25+
);

0 commit comments

Comments
 (0)