diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2020-04-03 07:16:07 +0000 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2020-04-03 08:35:55 +0000 |
| commit | 28f99db1e87a2076e6bbf52b85a93c4dddfe8dab (patch) | |
| tree | e723836e24024601eb9df8a1661b1123bd9fc5ac /addons/web/static/tests/views | |
| parent | 8c888caeab93bd7716a1572d23bd51cb1966a9c9 (diff) | |
[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>
Diffstat (limited to 'addons/web/static/tests/views')
| -rw-r--r-- | addons/web/static/tests/views/calendar_tests.js | 2 |
1 files changed, 1 insertions, 1 deletions
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)') ); |
