From 3d73f18aa9a225bad4e8df9c9068b279632c0b79 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Thu, 1 Feb 2018 19:52:26 +0100 Subject: [PATCH] [FIX] web: correct draganddrop call in new test. The test doesn't still pass as onchange is not call on `sequence` field. --- addons/web/static/tests/fields/relational_fields_tests.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/addons/web/static/tests/fields/relational_fields_tests.js b/addons/web/static/tests/fields/relational_fields_tests.js index beb47c2a22d..ef10a0aeb80 100644 --- a/addons/web/static/tests/fields/relational_fields_tests.js +++ b/addons/web/static/tests/fields/relational_fields_tests.js @@ -1373,10 +1373,10 @@ QUnit.module('relational_fields', { return $.when([{id: 1, type_id: [12, 'gold']}]); } if (route === '/web/dataset/call_kw/partner_type/get_formview_id') { - return $.when(false) + return $.when(false); } if (route === '/web/dataset/call_kw/partner_type/read') { - return $.when([{id: 12, partner_ids: [1,2], display_name: 'gold'}]) + return $.when([{id: 12, partner_ids: [1,2], display_name: 'gold'}]); } if (route === '/web/dataset/call_kw/partner_type/write') { assert.step('partner_type write'); @@ -1396,7 +1396,8 @@ QUnit.module('relational_fields', { assert.equal($handles.length, 2, 'There should be 2 sequence handlers'); - testUtils.dragAndDrop($handles.eq(1), $modal.find('tbody tr').first()); + testUtils.dragAndDrop($handles.eq(1), $modal.find('tbody tr').first(), + {position: 'top'}); // Saving the modal and then the original model $modal.find('.modal-footer .btn-primary').click();