From 28f99db1e87a2076e6bbf52b85a93c4dddfe8dab Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Fri, 3 Apr 2020 07:16:07 +0000 Subject: [PATCH] [FIX] web: no false positive "drag and drop on month mode with all_day mapping" The "Views > CalendarView > drag and drop on month mode with all_day mapping" test would fail regulary with "Found 2 elements to click on, instead of 1" because the drag and drop would be ongoing and the event would sometimes appear two times in the DOM when we try to click on the drag and dropped event. closes #48928 closes odoo/odoo#48937 X-original-commit: 9bc0b11b2e255852c1376fe6fa87722186681a73 Signed-off-by: Nicolas Lempereur (nle) --- addons/web/static/tests/views/calendar_tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/tests/views/calendar_tests.js b/addons/web/static/tests/views/calendar_tests.js index 3cb79870910..e8fd8bdcd31 100644 --- a/addons/web/static/tests/views/calendar_tests.js +++ b/addons/web/static/tests/views/calendar_tests.js @@ -2907,7 +2907,7 @@ QUnit.module('Views', { await testUtils.nextTick(); // Move event to another day (on 19 december) - await testUtils.dragAndDrop( + await testUtils.dom.dragAndDrop( calendar.$('.fc-event:contains("An event")'), calendar.$('.fc-day-grid .fc-row:eq(3) .fc-day-top:eq(1)') );