diff options
| author | Julien Mougenot <jum@odoo.com> | 2020-07-13 12:58:36 +0000 |
|---|---|---|
| committer | Mathieu Duckerts-Antoine <dam@odoo.com> | 2020-07-23 08:21:09 +0000 |
| commit | 20caa733c656c6f76cd075829e7854b2b2a22bf9 (patch) | |
| tree | 26aef5f95255a775c7f0bb40e46e43555b91e317 /addons/web/static/tests/helpers/test_utils.js | |
| parent | fb3cd348c87345b4601111901b9b15bc70da9794 (diff) | |
[IMP] web: TestUtils findItem
Extraction of the findItem function from the control panel test utils
to the dom utils.
This function helps find an item matching a given selector and:
- having the given text as its inner text
OR
- being the item at the given index
An error is thrown if no item matches the predicate
Diffstat (limited to 'addons/web/static/tests/helpers/test_utils.js')
| -rw-r--r-- | addons/web/static/tests/helpers/test_utils.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/tests/helpers/test_utils.js b/addons/web/static/tests/helpers/test_utils.js index 1a1f38f7f09..1aa2e1f0fcf 100644 --- a/addons/web/static/tests/helpers/test_utils.js +++ b/addons/web/static/tests/helpers/test_utils.js @@ -177,6 +177,7 @@ odoo.define('web.test_utils', async function (require) { triggerMouseEvent: testUtilsDom.triggerMouseEvent, triggerPositionalMouseEvent: testUtilsDom.triggerPositionalMouseEvent, dragAndDrop: testUtilsDom.dragAndDrop, + find: testUtilsDom.findItem, getNode: testUtilsDom.getNode, openDatepicker: testUtilsDom.openDatepicker, click: testUtilsDom.click, |
