Skip to content

Commit 804cb3f

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

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
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

web_responsive/static/tests/test_patch.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
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). */
34
odoo.define("web_responsive.test_patch", function (require) {
45
"use strict";
56

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

8-
/* Make base odoo JS tests working */
9-
utils.include({
10+
patch(stepUtils, {
11+
/* Make base odoo JS tests working */
1012
showAppsMenuItem() {
1113
return {
1214
edition: "community",
13-
trigger: ".o_navbar_apps_menu",
15+
trigger: "button.o_grid_apps_menu__button",
1416
auto: true,
1517
position: "bottom",
1618
};

0 commit comments

Comments
 (0)