[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:
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user