From d0bb3554c1cf451af8f6d2bc5963fd08f35efef4 Mon Sep 17 00:00:00 2001 From: FrancoisGe Date: Tue, 2 May 2023 08:06:10 +0000 Subject: [PATCH] [FIX] web: fix advanced search comparison test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit adds a patchDate to the "Several date filters and a comparison" test. The patchDate will allow the date to be fixed and prevent the test from being invalidated when the month changes in the real world. closes odoo/odoo#120231 Signed-off-by: Michaƫl Mattiello --- addons/web/static/tests/search/advanced_search_dialog_tests.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web/static/tests/search/advanced_search_dialog_tests.js b/addons/web/static/tests/search/advanced_search_dialog_tests.js index 1530549daba..423a34676b6 100644 --- a/addons/web/static/tests/search/advanced_search_dialog_tests.js +++ b/addons/web/static/tests/search/advanced_search_dialog_tests.js @@ -539,6 +539,7 @@ QUnit.module("Search", (hooks) => { }); QUnit.test("Several date filters and a comparison", async function (assert) { + patchDate(2023, 3, 1, 0, 0, 0); serverData.views["foo,1,search"] = `