[FIX] web: fix advanced search comparison test

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 <mcm@odoo.com>
This commit is contained in:
FrancoisGe
2023-05-02 11:22:17 +02:00
parent d08043ea73
commit d0bb3554c1
@@ -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"] = `
<search>
<filter name="date_filter" string="Date" date="date_field"/>