diff options
| author | Vincent Schippefilt <vsc@odoo.com> | 2019-03-06 14:02:32 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2019-03-06 20:07:17 +0100 |
| commit | ab56e637b7f97ddcdbcc9baea99ae097e342409c (patch) | |
| tree | 4cb47da9f7ef89b19d18429220a7507470ec12a9 /addons/web/static/tests/helpers/test_utils_pivot.js | |
| parent | eeed894fd50e477135e1ac9a82f6e98ce063ab90 (diff) | |
[REF] web: adapt code after jQuery update
Part of task 1896658
Co-authored-by: Aaron Bohy <aab@odoo.com>
Co-authored-by: Christophe Matthieu <chm@odoo.com>
Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
Co-authored-by: David Monjoie <dmo@odoo.com>
Co-authored-by: Martin Geubelle <mge@odoo.com>
Co-authored-by: svs-odoo <svs@odoo.com>
Co-authored-by: Vincent Schippefilt <vsc@odoo.com>
Diffstat (limited to 'addons/web/static/tests/helpers/test_utils_pivot.js')
| -rw-r--r-- | addons/web/static/tests/helpers/test_utils_pivot.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/web/static/tests/helpers/test_utils_pivot.js b/addons/web/static/tests/helpers/test_utils_pivot.js index 18a5a7307f3..fe059b533ed 100644 --- a/addons/web/static/tests/helpers/test_utils_pivot.js +++ b/addons/web/static/tests/helpers/test_utils_pivot.js @@ -24,7 +24,7 @@ var testUtilsDom = require('web.test_utils_dom'); * @param {string} measure */ function clickMeasure(pivot, measure) { - testUtilsDom.click(pivot.$buttons.find(`.dropdown-item[data-field=${measure}]`)); + return testUtilsDom.click(pivot.$buttons.find(`.dropdown-item[data-field=${measure}]`)); } /** @@ -35,7 +35,7 @@ function clickMeasure(pivot, measure) { * @param {PivotController} pivot */ function toggleMeasuresDropdown(pivot) { - testUtilsDom.click(pivot.$buttons.filter('.btn-group:first').find('> button')); + return testUtilsDom.click(pivot.$buttons.filter('.btn-group:first').find('> button')); } /** @@ -45,7 +45,7 @@ function toggleMeasuresDropdown(pivot) { * @param {[Object]} params given to the controller reload method */ function reload(pivot, params) { - pivot.reload(params); + return pivot.reload(params); } return { |
