From 3abba287f77a238decda6eb4c2d69831c12a36c7 Mon Sep 17 00:00:00 2001 From: Mathieu Duckerts-Antoine Date: Mon, 15 Jan 2024 13:17:36 +0100 Subject: [PATCH] [FIX] web: adapt editFavoriteName helper With the last realease of owl, .trim now implies .lazy. This means that if t-model.trim is used, the value will be updated in the state only when the change event is triggered. Here we adapt the helper editFavoriteName which was supposed to update the state value. X-original-commit: 7a16b75a35a5bd60190ee5b437b925a2fa99fb70 Part-of: odoo/odoo#149507 --- addons/web/static/tests/search/helpers.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/web/static/tests/search/helpers.js b/addons/web/static/tests/search/helpers.js index 46ada15f50e..e52de6dc7cb 100644 --- a/addons/web/static/tests/search/helpers.js +++ b/addons/web/static/tests/search/helpers.js @@ -9,6 +9,7 @@ import { mount, mouseEnter, triggerEvent, + triggerEvents, } from "@web/../tests/helpers/utils"; import { commandService } from "@web/core/commands/command_service"; import { dialogService } from "@web/core/dialog/dialog_service"; @@ -244,7 +245,7 @@ export async function editFavoriteName(el, name) { `.o_favorite_menu .o_add_favorite + .o_accordion_values input[type="text"]` ); input.value = name; - await triggerEvent(input, null, "input"); + await triggerEvents(input, null, ["input", "change"]); } export async function saveFavorite(el) {