diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-02-01 19:52:26 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-02-01 19:52:26 +0100 |
| commit | 3d73f18aa9a225bad4e8df9c9068b279632c0b79 (patch) | |
| tree | 1b155e446f3ae8dafea79ecc6820728d1aa2b653 /addons/web/static/tests/fields/relational_fields_tests.js | |
| parent | 1db85200762c0776f03a3188b0ff24fd1f2a6e3f (diff) | |
[FIX] web: correct draganddrop call in new test.
The test doesn't still pass as onchange is not call on `sequence` field.
Diffstat (limited to 'addons/web/static/tests/fields/relational_fields_tests.js')
| -rw-r--r-- | addons/web/static/tests/fields/relational_fields_tests.js | 7 |
1 files 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(); |
