[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) <nle@odoo.com>
This commit is contained in:
Nicolas Lempereur
2020-04-03 08:35:55 +00:00
parent 8c888caeab
commit 28f99db1e8
@@ -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)')
);